-
Notifications
You must be signed in to change notification settings - Fork 905
feat: add templates delete
command
#1443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a1551dc
to
f872b51
Compare
This is what I like to see Mr. Adler! |
RunE: func(cmd *cobra.Command, args []string) error { | ||
var ( | ||
ctx = cmd.Context() | ||
templateNames = []string{} |
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.
This can only be a max of 1 right? I don't believe this needs to be an array!
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 forgot to remove the max 1 limit! I think it's nicer if we take in more than one since it plays nicer with xargs.
This comment was marked as spam.
This comment was marked as spam.
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.
ish
cli/templatedelete.go
Outdated
func templateDelete() *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "delete [name...]", | ||
Short: "Delete templates.", |
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'm not sure this is a sentence
Resolves #1204