File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ Runs Edge App emulator
481
481
###### ** Options:**
482
482
483
483
* ` -p ` , ` --path <PATH> ` — Path to the directory with the manifest. If not specified CLI will use the current working directory
484
- * ` -s ` , ` --secrets <SECRETS> `
484
+ * ` -s ` , ` --secrets <SECRETS> ` — Secrets to be passed to the Edge App in the form KEY=VALUE. Can be specified multiple times
485
485
* ` -g ` , ` --generate-mock-data ` — Generates mock data to be used with Edge App run
486
486
487
487
Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ pub enum EdgeAppCommands {
320
320
#[ arg( short, long) ]
321
321
path : Option < String > ,
322
322
323
+ /// Secrets to be passed to the Edge App in the form KEY=VALUE. Can be specified multiple times.
323
324
#[ arg( short, long, value_parser = parse_key_values:: <Secrets >) ]
324
325
secrets : Option < Secrets > ,
325
326
Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ mod tests {
1072
1072
}
1073
1073
1074
1074
#[ test]
1075
- fn test_transform_edge_app_path_to_manifest_when_path_provided_should_return_path_with_instance_manifest (
1075
+ fn test_transform_edge_app_path_to_manifest_when_path_provided_should_return_path_with_manifest (
1076
1076
) {
1077
1077
let dir = tempdir ( ) . unwrap ( ) ;
1078
1078
let dir_path = dir. path ( ) ;
Original file line number Diff line number Diff line change 65
65
}
66
66
67
67
pub fn string_field_is_none_or_empty ( opt : & Option < String > ) -> bool {
68
- opt. as_ref ( ) . map_or ( true , |s| s. is_empty ( ) )
68
+ match opt. as_ref ( ) {
69
+ None => true ,
70
+ Some ( s) => s. is_empty ( ) ,
71
+ }
69
72
}
You can’t perform that action at this time.
0 commit comments