Skip to content

Conversation

@bvtujo
Copy link
Contributor

@bvtujo bvtujo commented Mar 5, 2020

Adds a port mapping flag to app init and prompts/validation when flag is not provided.

Addresses #595, #703.

I'm punting until next week on adding automagic dockerfile guesses in favor of getting core flag and prompt functionality merged in as quickly as possible.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

ecs-preview init behavior

image

ecs-preview app init behavior

image

@bvtujo bvtujo requested a review from a team as a code owner March 5, 2020 22:03
@bvtujo bvtujo requested a review from kohidave March 5, 2020 22:03
@bvtujo bvtujo force-pushed the init-port-mapping branch from dc31158 to c53a623 Compare March 5, 2020 23:47
@bvtujo bvtujo force-pushed the init-port-mapping branch from 5c6644f to 229d198 Compare March 6, 2020 17:34
@bvtujo bvtujo changed the title feat: port mapping flags and prompts (WIP) feat(cli): port mapping flags and prompts Mar 6, 2020
Copy link
Contributor

@kohidave kohidave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks slick!

One request - could you update the end to end test, as well? To specify the --port field for init and app init. e2e/internal/cli.go i think.

Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Just nits.

@bvtujo bvtujo requested a review from kohidave March 6, 2020 21:52
Copy link
Contributor

@kohidave kohidave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks delightful ! @iamhopaul123 has some good comments though!

One final nit on the description of the flag.

bvtujo added 2 commits March 6, 2020 14:14
Move default port string to const
Rephrase app port prompt
Rephrase error messages in app init
Refactor error messages, prompts, and consts in app init tests
@bvtujo bvtujo requested a review from iamhopaul123 March 6, 2020 22:22
@bvtujo bvtujo requested a review from kohidave March 6, 2020 22:22
@bvtujo bvtujo merged commit 89746b3 into aws:master Mar 6, 2020
Copy link
Contributor

@efekarakus efekarakus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Sorry for the delay, just a question

Comment on lines +147 to +149
type port interface {
Set(number int) error
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this interface used anywhere?

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.

4 participants