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 --static-file flag to create a static file #61

Closed
wants to merge 1 commit into from

Conversation

utsavanand2
Copy link
Contributor

@utsavanand2 utsavanand2 commented Mar 17, 2020

Add --static-file flag to create a static file

Signed-off-by: Utsav Anand [email protected]

Description

The PR adds feature to create a static file with the
machine ID, auth, IP and other metadata when the --static-file
flag is passed
Closes #28

How Has This Been Tested?

Screenshot 2020-03-18 at 1 16 57 AM

Screenshot 2020-03-18 at 1 17 12 AM

How are existing users impacted? What migration steps/scripts do we need?

No user impact

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • read the CONTRIBUTION guide
  • signed-off my commits with git commit -s
  • added unit tests

The PR adds feature to create a static file with the
machine ID, auth, IP and other metadata when the `--static-file`
flag is passed
Closes inlets#28

Signed-off-by: Utsav Anand <[email protected]>
@@ -44,6 +49,7 @@ func init() {
createCmd.Flags().StringP("remote-tcp", "c", "", `Remote host for inlets-pro to use for forwarding TCP connections`)

createCmd.Flags().DurationP("poll", "n", time.Second*2, "poll every N seconds, use a higher value if you encounter rate-limiting")
createCmd.Flags().BoolVarP(&staticFile, "static-file", "", false, "Create a static file for the provisioned machine")
Copy link
Member

Choose a reason for hiding this comment

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

I'm having second thoughts on the naming.

--static-file is rather verbose and we should have a shortcut for it too like we have -c for --remote-tcp

What other ideas do you have? cc @Waterdrips

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexellis @Waterdrips Maybe --sf ?

@alexellis alexellis closed this Jul 8, 2021
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.

Write a state file with the machine provisioned, its ID and auth token
2 participants