File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ //! The following tests check whether the shell completion files are outdated.
2+ //!
3+ //! If the tests fail, run `./generate-completions.sh` on the root of the repo to update the completion files.
4+
15// Since the CLI in Windows look a little different, and I am way too lazy to make two versions
26// of completion files, the following tests would only run in UNIX-like environment.
37#![ cfg( unix) ]
@@ -20,7 +24,10 @@ macro_rules! check {
2024 let received =
2125 Args :: get_completion_string( "pdu" , Shell :: $shell) . expect( "get completion string" ) ;
2226 let expected = include_str!( $path) ;
23- assert!( received == expected, "completion is outdated" ) ;
27+ assert!(
28+ received == expected,
29+ "completion is outdated, run ./generate-completions.sh to update them" ,
30+ ) ;
2431 }
2532 } ;
2633}
You can’t perform that action at this time.
0 commit comments