GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(cli): implement ask for task run by Louise15926 · Pull Request #1036 · aws/copilot-cli
This repository was archived by the owner on Jun 22, 2026. It is now read-only.
Conversation
Contributor
This PR has two major changes: 1. add ask to task run; 2. add a required flag for task-family name, update validate and ask correspondingly Related #702 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAdd validate to task run Co-authored-by: Austin Ely <[email protected]>
iamhopaul123
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks really good to me! Just one small suggestion.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
piradeepk
reviewed
Uh oh!
There was an error while loading. Please reload this page.
piradeepk
reviewed
Uh oh!
There was an error while loading. Please reload this page.
piradeepk
reviewed
Uh oh!
There was an error while loading. Please reload this page.
piradeepk
reviewed
Uh oh!
There was an error while loading. Please reload this page.
bvtujo
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome progress! Can't wait to see the next one!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we add an ask method for the number of tasks to run?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would basically make "number of tasks" a required field right? But it is (currently meant to be) an optional field which default value to 1.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can have default value for the prompt but +1 on that, since I think for most of cases the num will just be 1.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsaddress feedback Co-authored-by: Austin Ely <[email protected]>
piradeepk
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ship it! 💯 @Louise15926 this looks awesome!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
bvtujo
approved these changes
|
| func (s *Select) EnvironmentWithNone(prompt, help, app string) (string, error) { | ||
| envs, err := s.retrieveEnvironments(app) | ||
| if err != nil { | ||
| return "", fmt.Errorf("get environments for app %s from metadata store: %w", app, err) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we add a unit test that will hit this error block?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good call..! I realized that EnvironmentWithNone and Environment wrap the error returned from retrieveEnvironments, which is from the same package. Is this wrapping necessary? I feel like I can just return "", err for line 147.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this error can be passed through like you say instead of being wrapped.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if err := o.askTaskGroupName(); err != nil { | ||
| return err | ||
| } | ||
| if err := o.askEnvName(); err != nil { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we add a unit test to mock this failure and ensure that the error is wrapped?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also on this method call, can we add a unit test which returns "None" to ensure that everything works as expected in the case that we have to check the default cluster?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.