-
Notifications
You must be signed in to change notification settings - Fork 243
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 consistency in commands for project, application & components #421
Conversation
What if I create a project called |
@surajnarwade @kadel is right, it breaks on define keywords like list, create and others
|
The question is how much do we care ;-) |
I think we should just leave it with set to switch for now |
@kadel , I think we should not care about this corner case, since |
c00f130
to
447b3cb
Compare
Looks good. But we need to add examples and descriptions. Otherwise, users won't know what is going on. |
cmd/application.go
Outdated
Run: applicationGetCmd.Run, | ||
Example: ` # Get current application, | ||
odo app | ||
# Set webapp to current application, |
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 please add an empty line between each example?
It would be nice to keep it consistent with other places like odo create -h
cmd/component.go
Outdated
) | ||
|
||
// componentCmd represents the component command | ||
var componentCmd = &cobra.Command{ | ||
Use: "component", | ||
Short: "Components of application.", | ||
Example: ` # Get current component, | ||
odo component | ||
# Set nodejs to current component, |
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 please add an empty line between each example?
It would be nice to keep it consistent with other places like odo create -h
cmd/project.go
Outdated
@@ -3,9 +3,10 @@ package cmd | |||
import ( | |||
"fmt" | |||
|
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.
empty line
cmd/project.go
Outdated
Run: projectGetCmd.Run, | ||
Example: ` # Get current project, | ||
odo project | ||
# Set myproject to current project, |
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 please add an empty line between each example?
It would be nice to keep it consistent with other places like odo create -h
a4d452c
to
a39922b
Compare
@kadel done with suggested changes |
good to go after rebase |
Fixes redhat-developer#274 Now, ``` odo project xyz odo component abc odo application pqr ``` they will work same as `set` operation.
Fixes #274
Now,
they will work same as
set
operation.