-
Notifications
You must be signed in to change notification settings - Fork 350
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
Add delete integration option #100
Conversation
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.
Very good!
Just a println
and we're done 😄
if err != nil { | ||
return err | ||
} | ||
} |
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.
Can you add a feedback to the user also here?
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.
Good, thanks. Will add in case of no integrations to delete or number of deleted integrations
Long: kamelCommandLongDescription, | ||
Use: "kamel", | ||
Short: "Kamel is a awesome client tool for running Apache Camel integrations natively on Kubernetes", | ||
Long: kamelCommandLongDescription, |
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 will be reverted by gofmt, best if you set it up on your ide
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.
@lburgazzoli , sorry, this was done by vscode by default. Will try to set gofmt for it.
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.
@lburgazzoli it's very strange, but I got the same result when I tried to format manually with gofmt
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.
strange, when I do save in vscode, it gets automatically indented. In any case it is not an issue
pkg/client/cmd/delete.go
Outdated
RunE: options.run, | ||
} | ||
|
||
cmd.Flags().StringVar(&options.integrationName, "name", "", "The integration name") |
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 we do not need an option for the integration to delete but you could use what the user input as args so you can delete multiple integration, like
kamel delete i1 i2 i3
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.
Ok, thanks will do this.
cea84d7
to
87b8748
Compare
@lburgazzoli , @nicolaferraro fixed. Please review. |
I'm not included in the requested reviewer but I tested it and it works. |
@oscerd , sorry. missed you. Thanks for testing. |
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.
Let's merge it and trigger a release
Fixes #96