mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(cli): build command features and bundles can have multiple values (#8744)
* fix(cli): build command and can have multiple values * add value delimiter on bundles * gitignore dist
This commit is contained in:
committed by
GitHub
parent
4806f9fc70
commit
3364b6727c
1
examples/api/.gitignore
vendored
1
examples/api/.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
.DS_Store
|
||||
gen/
|
||||
.cargo
|
||||
dist/
|
||||
|
||||
@@ -15,7 +15,7 @@ use crate::{
|
||||
};
|
||||
use anyhow::{bail, Context};
|
||||
use base64::Engine;
|
||||
use clap::Parser;
|
||||
use clap::{ArgAction, Parser};
|
||||
use log::{debug, error, info, warn};
|
||||
use std::{
|
||||
env::{set_current_dir, var_os},
|
||||
@@ -46,7 +46,7 @@ pub struct Options {
|
||||
#[clap(short, long)]
|
||||
pub target: Option<String>,
|
||||
/// Space or comma separated list of features to activate
|
||||
#[clap(short, long, value_delimiter = ',')]
|
||||
#[clap(short, long, action = ArgAction::Append, num_args(0..))]
|
||||
pub features: Option<Vec<String>>,
|
||||
/// Space or comma separated list of bundles to package.
|
||||
///
|
||||
@@ -54,7 +54,7 @@ pub struct Options {
|
||||
/// If `none` is specified, the bundler will be skipped.
|
||||
///
|
||||
/// Note that the `updater` bundle is not automatically added so you must specify it if the updater is enabled.
|
||||
#[clap(short, long, value_delimiter = ',')]
|
||||
#[clap(short, long, action = ArgAction::Append, num_args(0..), value_delimiter = ',')]
|
||||
pub bundles: Option<Vec<String>>,
|
||||
/// JSON string or path to JSON file to merge with tauri.conf.json
|
||||
#[clap(short, long)]
|
||||
|
||||
Reference in New Issue
Block a user