You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(bolt-install): support using 'install' command with remote manifests (#154)
* feat(bolt-install): support using 'install' command with remote manifests
* feat(bolt-install): support using 'install' command with remote manifests
* feat(bolt-install): default --environment deployed when --team provided and --environment unset
* feat(bolt-install): add PR number
* feat(bolt-install): add example of using the --environment flag
* feat(bolt-install): fix --environment flag support
* fix: allow mixing-and-matching --team and --environment
* fix: warning message
* test: fix failing add_test.go
* fix: refactor code to be tighter
* fix: remove the UserID comment to avoid unexpected behaviour
* Update cmd/app/add.go
Co-authored-by: Eden Zimbelman <[email protected]>
* test: refactor mockLocalManifest to mockManifestAppLocal (and Remote)
* fix: install command to handle --app local and --app deployed
* fix: install command skips environment prompt when --app is set
* fix: skip defaulting to deployed environment when app id is provided
* fix: skip defaulting to deployed environment when --team provided
---------
Co-authored-by: Eden Zimbelman <[email protected]>
returnctx, "", types.App{}, slackerror.New(slackerror.ErrMismatchedFlags).WithRemediation("When '--app <app_id>' is set, please do not set the flag --environment.")
102
+
}
103
+
104
+
// TODO: Move to the promptIsProduction when the prompt is refactored and tested.
105
+
// Validate that the --environment flag matches the --app flag, when the value is `--app local` or `--app deployed`.
returnctx, "", types.App{}, slackerror.New(slackerror.ErrMismatchedFlags).WithRemediation("When '--app local' or '--app deployed' is set, please set the flag --environment to match the --app flag.")
0 commit comments