Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

update bundle remove flag/help #697

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michelleN
Copy link
Contributor

resolves #692

@ghost ghost assigned michelleN Apr 5, 2019
@ghost ghost added the review label Apr 5, 2019
@@ -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'.
Copy link
Contributor

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")
Copy link
Contributor

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?

Copy link
Member

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).

Copy link
Member

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).

@michelleN michelleN added this to In Progress in duffle 0.1.0-ralpha.6+flirtini via automation Apr 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Development

Successfully merging this pull request may close these issues.

duffle bundle remove not working
4 participants