-
Notifications
You must be signed in to change notification settings - Fork 124
module reload improvements #5370
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
base: main
Are you sure you want to change the base?
module reload improvements #5370
Conversation
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.
Love the architecture cleanup!
# A full reload command. This will build your module, send the tarball to the machine with given part ID, | ||
# and configure or restart it. | ||
viam module reload --part-id UUID | ||
# Run viam module reload on a mac and use the downloaded viam.json file instead of --part-id | ||
viam module reload --cloud-config ~/Downloads/viam-mac-main.json | ||
# Specify a component/service model (and optionally a name) to add to the config along with | ||
# the module (the API is automatically looked up from meta.json) | ||
# By default, no resources are added when a module is reloaded | ||
viam module reload --model-name acme:module-name:mybase --name my-resource`, |
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.
very nice!
cli/module_build.go
Outdated
return org.GetId(), nil | ||
} | ||
|
||
func (c *viamClient) triggerCloudReload( |
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.
nit: I read this initially and expected the entire flow for reload here. Then realized it was just the build trigger.
func (c *viamClient) triggerCloudReload( | |
func (c *viamClient) triggerCloudReloadBuild( |
…064-module-reload-improvements
test failures are expected until the API PR is merged because we're referencing proto types that don't technically exist yet.