-
Notifications
You must be signed in to change notification settings - Fork 126
RSDK-12623: Viam cli can work with trace files from viam-server #5552
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
Conversation
Co-authored-by: Benjamin Rewis <[email protected]>
benjirewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much LGTM % the remaining note about defaulting to the current directory for the destination file.
… default bufio.Scanner buffer max size
…c command style, add more output
benjirewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks.
stuqdog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor request to use the createUsageText helper (no need to rerequest review), otherwise lgtm!
| Usage: "Print traces from a remote viam machine to the console", | ||
| Description: ` | ||
| In order to use the print-remote command, the machine must have a valid shell type service. | ||
| Organization and location are required flags if using name (rather than ID) for the part. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to use createUsageText helper here (and in the other new methods) to get consistent usage text formatting. Also because currently, the usage text on viam traces get-remote --help includes USAGE: viam traces get-remote [command options] [target], but it isn't clear from this text that part is in fact a required field.
This adds a
tracescommand to the cli with various subcommands to display or import trace files produced by viam-server.