We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb483eb + 9baf430 commit 4cb1ce3Copy full SHA for 4cb1ce3
pkg/cmd/cli/cmd/projects.go
@@ -141,10 +141,12 @@ func (o ProjectsOptions) RunProjects() error {
141
if err == nil {
142
switch len(projects) {
143
case 0:
144
- msg += "You are not a member of any projects. You can request a project to be created with the 'new-project' command."
+ if !o.DisplayShort {
145
+ msg += "You are not a member of any projects. You can request a project to be created with the 'new-project' command."
146
+ }
147
case 1:
148
if o.DisplayShort {
- msg += fmt.Sprintf("%s", api.DisplayNameAndNameForProject(&projects[0]))
149
+ msg += fmt.Sprintf("%s", projects[0].Name)
150
} else {
151
msg += fmt.Sprintf("You have one project on this server: %q.", api.DisplayNameAndNameForProject(&projects[0]))
152
}
0 commit comments