-
Notifications
You must be signed in to change notification settings - Fork 54
update bundle remove flag/help #697
base: master
Are you sure you want to change the base?
Conversation
@@ -16,7 +16,7 @@ import ( | |||
const bundleRemoveDesc = `Remove a bundle from the local storage. | |||
|
|||
This removes a bundle from the local storage so that it will no longer be locally | |||
available. Bundles can be rebuilt with 'duffle build'. | |||
available. Bundles can be rebuilt and store in local storage with 'duffle build'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: and stored in local storage
@@ -46,7 +46,7 @@ func newBundleRemoveCmd(w io.Writer) *cobra.Command { | |||
return remove.run() | |||
}, | |||
} | |||
cmd.Flags().StringVar(&remove.versions, "version", "", "A version or SemVer2 version range") | |||
cmd.Flags().StringVarP(&remove.versions, "version", "r", "", "A version or SemVer2 version range") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the command should be duffle bundle rm mybundle -r version
why -r
as the shortcut for version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose because -v
is used for verbose output (at least it's supposed to be used that way, Simon pointed out that it's currently not working as intended).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the alternative would be not to have a shorthand flag at all?
(I'm happy with this approach, as -r
is not really intuitive for passing a version).
resolves #692