-
Notifications
You must be signed in to change notification settings - Fork 428
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
chore: add hidden --manifest flag to env show #3597
Conversation
16ec03e
to
c484db0
Compare
internal/pkg/cli/env_show.go
Outdated
func (o *showEnvOpts) validateApp() error { | ||
_, err := o.store.GetApplication(o.appName) | ||
if err != nil { | ||
return fmt.Errorf("validate application name '%s': %v", o.appName, err) |
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.
I feel the reason why we need this strange pattern for error wrapping (validate ... but the actual API we call is GetApplication
) is because we probably need a validate
package.
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.
you think so? maybe a cli/validate
package isn't a bad idea for us to move all of our validate.go
logic
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.