mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-25 13:57:56 +02:00
Use positional arguments for source and target in beam commands
This commit is contained in:
parent
3ab0ce1cc6
commit
20f1732858
4 changed files with 20 additions and 22 deletions
|
@ -37,11 +37,7 @@ func init() {
|
|||
|
||||
// Cobra supports Persistent Flags which will work for this command
|
||||
// and all subcommands, e.g.:
|
||||
beamCmd.PersistentFlags().StringP("from", "f", "", "Source service configuration (required)")
|
||||
beamCmd.MarkPersistentFlagRequired("from")
|
||||
beamCmd.PersistentFlags().StringP("to", "t", "", "Target service configuration (required)")
|
||||
beamCmd.MarkPersistentFlagRequired("to")
|
||||
beamCmd.PersistentFlags().Int64P("timestamp", "s", 0, "Only import data newer then given Unix timestamp")
|
||||
// beamCmd.PersistentFlags().String("foo", "", "A help for foo")
|
||||
|
||||
// Cobra supports local flags which will only run when this command
|
||||
// is called directly, e.g.:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue