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

Added check for deletion of current component #584

Merged
merged 1 commit into from
Jul 19, 2018

Conversation

surajnarwade
Copy link
Contributor

No description provided.

cmd/delete.go Outdated
@@ -42,6 +42,10 @@ var componentDeleteCmd = &cobra.Command{
// else, use the first argument and check to see if it exists
if len(args) == 0 {
componentName, err = component.GetCurrent(client, applicationName, projectName)
if componentName == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the getComponent() function in cmdUtils, I guess it does the same thing

Copy link
Contributor

@mik-dass mik-dass left a comment

Choose a reason for hiding this comment

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

LGTM :)

@cdrage
Copy link
Member

cdrage commented Jul 19, 2018

LGTM.

@cdrage cdrage merged commit bd0ea7d into redhat-developer:master Jul 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.

3 participants