File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1897,6 +1897,7 @@ Future runs of this module will trigger no downloads or compilation unless --rel
1897
1897
. arg ( frozen_lockfile_arg ( ) )
1898
1898
. arg ( allow_scripts_arg ( ) )
1899
1899
. arg ( allow_import_arg ( ) )
1900
+ . arg ( env_file_arg ( ) )
1900
1901
} )
1901
1902
}
1902
1903
@@ -4659,6 +4660,7 @@ fn cache_parse(
4659
4660
frozen_lockfile_arg_parse ( flags, matches) ;
4660
4661
allow_scripts_arg_parse ( flags, matches) ?;
4661
4662
allow_import_parse ( flags, matches) ?;
4663
+ env_file_arg_parse ( flags, matches) ;
4662
4664
let files = matches. remove_many :: < String > ( "file" ) . unwrap ( ) . collect ( ) ;
4663
4665
flags. subcommand = DenoSubcommand :: Cache ( CacheFlags { files } ) ;
4664
4666
Ok ( ( ) )
@@ -7584,6 +7586,18 @@ mod tests {
7584
7586
..Flags :: default ( )
7585
7587
}
7586
7588
) ;
7589
+
7590
+ let r = flags_from_vec ( svec ! [ "deno" , "cache" , "--env-file" , "script.ts" ] ) ;
7591
+ assert_eq ! (
7592
+ r. unwrap( ) ,
7593
+ Flags {
7594
+ subcommand: DenoSubcommand :: Cache ( CacheFlags {
7595
+ files: svec![ "script.ts" ] ,
7596
+ } ) ,
7597
+ env_file: Some ( vec![ ".env" . to_string( ) ] ) ,
7598
+ ..Flags :: default ( )
7599
+ }
7600
+ ) ;
7587
7601
}
7588
7602
7589
7603
#[ test]
You can’t perform that action at this time.
0 commit comments