Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 6 commits into from
May 13, 2022
Merged

feat: add templates delete command #1443

merged 6 commits into from
May 13, 2022

Conversation

coadler
Copy link
Contributor

@coadler coadler commented May 13, 2022

Resolves #1204

@coadler coadler self-assigned this May 13, 2022
@coadler coadler force-pushed the colin/template-delete branch from a1551dc to f872b51 Compare May 13, 2022 21:54
@ammario
Copy link
Member

ammario commented May 13, 2022

This is what I like to see Mr. Adler!

RunE: func(cmd *cobra.Command, args []string) error {
var (
ctx = cmd.Context()
templateNames = []string{}
Copy link
Member

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!

Copy link
Contributor Author

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.

@codecov

This comment was marked as spam.

@coadler coadler requested a review from ammario May 13, 2022 22:13
Copy link
Member

@ammario ammario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ish

func templateDelete() *cobra.Command {
return &cobra.Command{
Use: "delete [name...]",
Short: "Delete templates.",
Copy link
Member

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

@coadler coadler enabled auto-merge (squash) May 13, 2022 22:44
@coadler coadler merged commit fe7645b into main May 13, 2022
@coadler coadler deleted the colin/template-delete branch May 13, 2022 22:54
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
@spikecurtis
Copy link
Contributor

I think this resolves #1204 not #777

@coadler
Copy link
Contributor Author

coadler commented May 16, 2022

I think this resolves #1204 not #777

Oops!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: add coder templates delete command
5 participants