зеркало из https://github.com/docker/hub-tool.git
Merge pull request #95 from docker/forece-shorthand
Add shorthand -f for all --force
This commit is contained in:
Коммит
a33ee42f78
|
@ -53,7 +53,7 @@ func newRmCmd(streams command.Streams, hubClient *hub.Client, parent string) *co
|
|||
return runRm(streams, hubClient, opts, args[0])
|
||||
},
|
||||
}
|
||||
cmd.Flags().BoolVar(&opts.force, "force", false, "Force deletion of the repository")
|
||||
cmd.Flags().BoolVarP(&opts.force, "force", "f", false, "Force deletion of the repository")
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ func newRmCmd(streams command.Streams, hubClient *hub.Client, parent string) *co
|
|||
return runRm(streams, hubClient, opts, args[0])
|
||||
},
|
||||
}
|
||||
cmd.Flags().BoolVar(&opts.force, "force", false, "Force deletion of the tag")
|
||||
cmd.Flags().BoolVarP(&opts.force, "force", "f", false, "Force deletion of the tag")
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ func newRevokeCmd(streams command.Streams, hubClient *hub.Client, parent string)
|
|||
return runRevoke(streams, hubClient, opts, args[0])
|
||||
},
|
||||
}
|
||||
cmd.Flags().BoolVar(&opts.force, "force", false, "Force deletion of the tag")
|
||||
cmd.Flags().BoolVarP(&opts.force, "force", "f", false, "Force deletion of the tag")
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче