@@ -198,7 +198,7 @@ impl Default for UpdaterConfig {
198
198
#[ derive( PartialEq , Deserialize , Debug , Clone , Default ) ]
199
199
#[ serde( rename_all = "camelCase" ) ]
200
200
pub struct SecurityConfig {
201
- /// Content security policy to inject to HTML files with the custom protocol .
201
+ /// Content security policy to inject to HTML files with `tauri://` and other user-defined custom protocols .
202
202
pub csp : Option < String > ,
203
203
}
204
204
@@ -301,21 +301,30 @@ pub struct CliArg {
301
301
pub index : Option < u64 > ,
302
302
}
303
303
304
- /// The CLI root command definition.
304
+ /// The CLI command definition.
305
305
#[ derive( PartialEq , Deserialize , Debug , Clone ) ]
306
306
#[ serde( rename_all = "camelCase" ) ]
307
- #[ allow( missing_docs) ] // TODO
308
307
pub struct CliConfig {
308
+ /// Command description which will be shown on the help information.
309
309
pub description : Option < String > ,
310
+ /// Command long description which will be shown on the help information.
310
311
pub long_description : Option < String > ,
312
+ /// Adds additional help information to be displayed in addition to auto-generated help.
313
+ /// This information is displayed before the auto-generated help information.
314
+ /// This is often used for header information.
311
315
pub before_help : Option < String > ,
316
+ /// Adds additional help information to be displayed in addition to auto-generated help.
317
+ /// This information is displayed after the auto-generated help information.
318
+ /// This is often used to describe how to use the arguments, or caveats to be noted.
312
319
pub after_help : Option < String > ,
320
+ /// List of arguments for the command
313
321
pub args : Option < Vec < CliArg > > ,
322
+ /// List of subcommands of this command
314
323
pub subcommands : Option < HashMap < String , CliConfig > > ,
315
324
}
316
325
317
326
impl CliConfig {
318
- /// List of args for the command
327
+ /// List of arguments for the command
319
328
pub fn args ( & self ) -> Option < & Vec < CliArg > > {
320
329
self . args . as_ref ( )
321
330
}
@@ -426,10 +435,10 @@ pub enum AppUrl {
426
435
#[ derive( PartialEq , Deserialize , Debug ) ]
427
436
#[ serde( rename_all = "camelCase" ) ]
428
437
pub struct BuildConfig {
429
- /// the devPath config .
438
+ /// Directory path or URL to use on development. Default to `http://localhost:8080` .
430
439
#[ serde( default = "default_dev_path" ) ]
431
440
pub dev_path : AppUrl ,
432
- /// the dist config .
441
+ /// Distribution directory to use in release build. Default to `../dist` .
433
442
#[ serde( default = "default_dist_path" ) ]
434
443
pub dist_dir : AppUrl ,
435
444
/// Whether we should inject the Tauri API on `window.__TAURI__` or not.
@@ -467,7 +476,7 @@ pub struct PackageConfig {
467
476
pub version : Option < String > ,
468
477
}
469
478
470
- /// The tauri.conf.json mapper .
479
+ /// The config type mapped to ` tauri.conf.json` .
471
480
#[ derive( Debug , Default , PartialEq , Deserialize ) ]
472
481
#[ serde( rename_all = "camelCase" ) ]
473
482
pub struct Config {
0 commit comments