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:
Lucas Fernandes Nogueira
2024-02-03 09:14:02 -03:00
committed by GitHub
parent 4806f9fc70
commit 3364b6727c
2 changed files with 4 additions and 3 deletions

View File

@@ -3,3 +3,4 @@
.DS_Store
gen/
.cargo
dist/

View File

@@ -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)]