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

chore: add hidden --manifest flag to env show #3597

Merged
merged 7 commits into from
May 25, 2022

Conversation

efekarakus
Copy link
Contributor

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@efekarakus efekarakus requested a review from a team as a code owner May 23, 2022 22:28
@efekarakus efekarakus requested review from huanjani and removed request for a team May 23, 2022 22:28
@efekarakus efekarakus force-pushed the chore/env-show-manifest branch from 16ec03e to c484db0 Compare May 23, 2022 23:21
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)
Copy link
Contributor

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.

Copy link
Contributor Author

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

@Lou1415926 Lou1415926 added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label May 25, 2022
@efekarakus efekarakus removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants