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

Add port prompt for compute init #203

Merged
merged 5 commits into from
Feb 9, 2021

Conversation

Integralist
Copy link
Collaborator

When specifying a backend as part of the interactive prompt input for the fastly compute init command the default behaviour is to create the backend without TLS (i.e. HTTPS/port 443).

This is the prompt currently displayed:

Backend (originless, hostname or IP address): [originless] mock-s3.edgecompute.app

When the Backend is created it's actually assigned port 80 (i.e. HTTP) which the mock backend isn't accessible via.

We should provide a prompt for specifying the port so the user has control over this value.

Comment on lines +100 to +101
c.CmdClause.Flag("domain", "The name of the domain associated to the package").StringVar(&c.domain)
c.CmdClause.Flag("backend", "A hostname, IPv4, or IPv6 address for the package backend").StringVar(&c.backend)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I noticed these flags were assigning values to the wrong variable 🤦🏻 so have fixed in this PR.

@Integralist Integralist marked this pull request as ready for review February 8, 2021 17:21
@Integralist Integralist requested review from a team and doramatadora and removed request for a team February 8, 2021 18:12
@Integralist Integralist added the enhancement New feature or request label Feb 8, 2021
@Integralist Integralist force-pushed the integralist/20210208_backend_fqd branch from 710a569 to 6669cb5 Compare February 9, 2021 11:49
Copy link
Contributor

@doramatadora doramatadora left a comment

Choose a reason for hiding this comment

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

These changes look fine to me :)

@Integralist Integralist merged commit 3c13cde into master Feb 9, 2021
@Integralist Integralist deleted the integralist/20210208_backend_fqd branch February 9, 2021 14:18
@Integralist Integralist added bug Something isn't working and removed enhancement New feature or request labels Feb 15, 2021
@Integralist Integralist changed the title add port prompt for compute init Add port prompt for compute init Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants