commands: Add CLI tests

See #4598
This commit is contained in:
Bjørn Erik Pedersen
2018-04-10 19:16:09 +02:00
parent 4d32f2fa89
commit e8d6ca9531
10 changed files with 199 additions and 71 deletions

View File

@@ -151,7 +151,7 @@ expired.`,
)
// TODO(bep) cli refactor
// cc.cmd.PersistentFlags().StringVarP(&source, "source", "s", "", "filesystem path to read files relative from")
cc.cmd.PersistentFlags().StringVarP(&cc.source, "source", "s", "", "filesystem path to read files relative from")
cc.cmd.PersistentFlags().SetAnnotation("source", cobra.BashCompSubdirsInDir, []string{})
return cc