File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 22
33[package ]
44name = " pks"
5- version = " 0.2.19 "
5+ version = " 0.2.20 "
66edition = " 2021"
77description = " Welcome! Please see https://github.com/rubyatscale/pks for more information!"
88license = " MIT"
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ enum Command {
8383 } ,
8484
8585 #[ clap(
86- about = "Update package_todo.yml files with the current violations"
86+ about = "Update package_todo.yml files with the current violations" ,
87+ alias = "update-todo"
8788 ) ]
8889 Update ,
8990
Original file line number Diff line number Diff line change @@ -6,14 +6,24 @@ mod common;
66use pretty_assertions:: assert_eq;
77
88#[ test]
9+ #[ serial]
910// This and the next test are run in serial because they both use the same fixtures.
11+ fn update ( ) -> Result < ( ) , Box < dyn Error > > {
12+ test_update ( "update" )
13+ }
14+
15+ #[ test]
1016#[ serial]
11- fn test_update ( ) -> Result < ( ) , Box < dyn Error > > {
17+ fn update_todo ( ) -> Result < ( ) , Box < dyn Error > > {
18+ test_update ( "update-todo" )
19+ }
20+
21+ fn test_update ( command : & str ) -> Result < ( ) , Box < dyn Error > > {
1222 Command :: cargo_bin ( "pks" ) ?
1323 . arg ( "--project-root" )
1424 . arg ( "tests/fixtures/simple_app" )
1525 . arg ( "--debug" )
16- . arg ( "update" )
26+ . arg ( command )
1727 . assert ( )
1828 . success ( )
1929 . stdout ( predicate:: str:: contains (
You can’t perform that action at this time.
0 commit comments