Skip to content
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

Merged
merged 2 commits into from
Sep 19, 2018

Conversation

dmvolod
Copy link
Member

@dmvolod dmvolod commented Sep 19, 2018

Fixes #96

Copy link
Member

@nicolaferraro nicolaferraro left a 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
}
}
Copy link
Member

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?

Copy link
Member Author

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,
Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Contributor

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

RunE: options.run,
}

cmd.Flags().StringVar(&options.integrationName, "name", "", "The integration name")
Copy link
Contributor

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

Copy link
Member Author

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.

@dmvolod
Copy link
Member Author

dmvolod commented Sep 19, 2018

@lburgazzoli , @nicolaferraro fixed. Please review.

@oscerd
Copy link
Contributor

oscerd commented Sep 19, 2018

I'm not included in the requested reviewer but I tested it and it works.

@dmvolod
Copy link
Member Author

dmvolod commented Sep 19, 2018

@oscerd , sorry. missed you. Thanks for testing.

Copy link
Member

@nicolaferraro nicolaferraro left a 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

@nicolaferraro nicolaferraro merged commit ec48dc5 into apache:master Sep 19, 2018
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.

4 participants