-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature: List Project Groups functionality #288
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.
This will also need make docs
run to make sure the documentation is updated
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 handy addition
handleError(err) | ||
|
||
if len(projectGroups.Groups) == 0 { | ||
output.RenderInfo(fmt.Sprintf("There are no projects in group '%s'", groupName), outputOptions) |
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.
Where is groupName
defined? This message is confusing. I expect this message to be like "There are no groups for project '%s'" with the cmdProjectName as substitute
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.
🙈
Will fix it up
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.
Based on the condition though, this shouldn't ever be reached as projects should always have 1 group. Did you encounter this error?
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.
Yeah I get this error message for all of our projects. We haven't assigned our projects to a group yet.
~ % lagoon list project-groups -p <PROJECT NAME>
Info: There are no projects in group ''
Checklist
Adds the functionality to the CLI to list groups associated to a specified project.
Currently utilizing & pending merge of machinery PR uselagoon/machinery#23