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 --watch and --interval flags to 'cloud server status' #35

Merged
merged 2 commits into from
Mar 5, 2020

Conversation

dwburke
Copy link
Contributor

@dwburke dwburke commented Mar 4, 2020

No description provided.

Copy link
Contributor

@sgsullivan sgsullivan left a comment

Choose a reason for hiding this comment

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

👍

}

func init() {
cloudServerCmd.AddCommand(cloudServerStatusCmd)

cloudServerStatusCmd.Flags().StringSliceVar(&cloudServerStatusCmdUniqIdFlag, "uniq-id", []string{},
"uniq-id(s) to get status of. For multiple, must be ',' separated")
cloudServerStatusCmd.Flags().Bool("watch", false, "continue to redisplay status at --interval")
cloudServerStatusCmd.Flags().Int("interval", 10, "the interval to fetch the status when --watch is specified")
Copy link
Contributor

Choose a reason for hiding this comment

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

might be handy to mention the time unit is seconds

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea 92b99cf

@dwburke dwburke merged commit 500a1e0 into master Mar 5, 2020
@dwburke dwburke deleted the status-watch branch March 5, 2020 14:06
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.

2 participants