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

change "from" to "to" for odo link #2334

Merged
merged 1 commit into from Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion pkg/odo/cli/component/common_link.go
Expand Up @@ -115,7 +115,14 @@ func (o *commonLinkOptions) run() (err error) {
return err
}

log.Successf("%s %s has been successfully %sed from the component %s\n", linkType, o.suppliedName, o.operationName, o.Component())
switch o.operationName {
case "link":
log.Successf("%s %s has been successfully linked to the component %s\n", linkType, o.suppliedName, o.Component())
case "unlink":
log.Successf("%s %s has been successfully unlinked from the component %s\n", linkType, o.suppliedName, o.Component())
default:
return fmt.Errorf("unknown operation %s", o.operationName)
}

secret, err := o.Client.GetSecret(o.secretName, o.Project)
if err != nil {
Expand Down