-
Notifications
You must be signed in to change notification settings - Fork 45
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
DOCS-3430: Add viam machines part cp command #3905
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for viam-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -1190,6 +1191,24 @@ viam.service.vision.v1.VisionService.GetClassificationsFromCamera | |||
|
|||
# restart a part of a specified machine | |||
viam machines part restart --machine=123 --part=456 | |||
|
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.
Is there a reason these examples use a space and not an =
like the other examples in this code block? Seems they should be consistent with above as well as with the template where you have =<>
if both work?
@@ -1201,7 +1220,7 @@ viam machines part restart --machine=123 --part=456 | |||
| `api-key` | Work with an api-key for your machine | `create` (see [positional arguments: api-key](#positional-arguments-api-key)) | | |||
| `status` | Retrieve machine status for a specified machine | - | | |||
| `logs` | Retrieve logs for a specified machine | - | | |||
| `part` | Manage a specified machine part | `status`, `run`, `logs`, `shell`, `restart` (see [positional arguments: part](#positional-arguments-part)) | | |||
| `part` | Manage a specified machine part | `status`, `run`, `logs`, `shell`, `restart` (see [positional arguments: part](#positional-arguments-part)), `cp` | |
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.
| `part` | Manage a specified machine part | `status`, `run`, `logs`, `shell`, `restart` (see [positional arguments: part](#positional-arguments-part)), `cp` | | |
| `part` | Manage a specified machine part | `status`, `run`, `logs`, `shell`, `restart`, `cp` (see [positional arguments: part](#positional-arguments-part)) | |
I think? And cp
should be added to positional args: part?
@@ -1190,6 +1191,24 @@ viam.service.vision.v1.VisionService.GetClassificationsFromCamera | |||
|
|||
# restart a part of a specified machine | |||
viam machines part restart --machine=123 --part=456 | |||
|
|||
# Copy a single file to the machine with a new name: |
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.
Sounds ambiguous as to whether it's the same machine name or file name or directory name. Same comment on the two below.
viam machine part cp --organization "org" --location "location" --machine "m1" --part "m1-main" my_file machine:/home/user/ | ||
|
||
# Recursively copy a directory to the machine with the same name: | ||
viam machine part cp --part "m1-main" -r my_dir machine:/home/user/ |
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.
If you're using a part name instead of a part ID, per the Slack thread don't you need to pass organization and location? Maybe just make all of these IDs instead of names?
@@ -1231,7 +1250,7 @@ viam machines part restart --machine=123 --part=456 | |||
| -------- | ----------- | ------------------- | --------- | | |||
| `--organization` | Organization name or ID that the machine belongs to | `list`, `status`, `logs`, `part` | **Required** | | |||
| `--location` | Location name or ID that the machine belongs to or to list machines in | `list`, `status`, `logs`, `part` | **Required** | | |||
| `--machine` | Machine name or ID for which the command is being issued | `status`, `logs`, `part`, `part restart` | **Required** | | |||
| `--machine` | Machine name or ID for which the command is being issued | `status`, `logs`, `part` | **Required** | |
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.
| `--machine` | Machine name or ID for which the command is being issued | `status`, `logs`, `part` | **Required** | | |
| `--machine` | Machine name or ID for which the command is being issued. If machine name is used instead of ID, `--organization` and `--location` are required | `status`, `logs`, `part` | **Required** | |
I think based on Slack thread? Maybe only applies to part cp
though so disregard if so
Co-authored-by: JessamyT <[email protected]>
You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/3905 |
No description provided.