-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(config): make it so you can revert override of apps #440
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -20,11 +20,31 @@ in a device group. When run without options, prints out the current configuratio | |||||||||||
# Make devices start taking updates from Targets tagged with "devel": | ||||||||||||
fioctl config updates --group beta --tag devel | ||||||||||||
|
||||||||||||
# Set the docker apps that devices will run: | ||||||||||||
# Set the Compose apps that devices will run: | ||||||||||||
fioctl config updates --group beta --apps shellhttpd | ||||||||||||
|
||||||||||||
# Set the docker apps and the tag for devices: | ||||||||||||
fioctl config updates --group beta --apps shellhttpd --tag master`, | ||||||||||||
# Set the Compose apps and the tag for devices: | ||||||||||||
fioctl config updates --group beta --apps shellhttpd --tag master | ||||||||||||
|
||||||||||||
# There are two special characters: "," and "-" | ||||||||||||
# The following explains what happens if you provide a "," | ||||||||||||
# Set the Compose apps to none for devices, this will make the device run no apps: | ||||||||||||
fioctl config updates --apps , | ||||||||||||
|
||||||||||||
# The following explains what happens if you provide a "-" | ||||||||||||
# Set the Compose apps to preset-apps (all apps on most devices): | ||||||||||||
# The system will look in the following locations in order to get the complete config: | ||||||||||||
Comment on lines
+34
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
- /usr/lib/sota/conf.d/ | ||||||||||||
- /var/sota/sota.toml | ||||||||||||
- /etc/sota/conf.d/ | ||||||||||||
fioctl config updates --apps - | ||||||||||||
|
||||||||||||
# Set the device tag to a preset-tag : | ||||||||||||
# The system will look in the following locations in order to get the complete config: | ||||||||||||
Comment on lines
+42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
- /usr/lib/sota/conf.d/ | ||||||||||||
- /var/sota/sota.toml | ||||||||||||
- /etc/sota/conf.d/ | ||||||||||||
fioctl config updates --tag -`, | ||||||||||||
Comment on lines
+29
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An indentation here seems rather weird. At the least, these two sentences should be indented at the same level:
The same applies to these three sentences (about indentation):
Also, as sentences in these paragraphs are user-facing, they deserve a proper punctuation at their ends, like |
||||||||||||
} | ||||||||||||
cmd.AddCommand(configUpdatesCmd) | ||||||||||||
configUpdatesCmd.Flags().StringP("group", "g", "", "Device group to use") | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -21,12 +21,31 @@ currently configured and reporting.`, | |||||||||||
# Make a device start taking updates from Targets tagged with "devel" | ||||||||||||
fioctl devices config updates <device> --tag devel | ||||||||||||
|
||||||||||||
# Set the docker apps a device will run: | ||||||||||||
# Set the Compose apps a device will run: | ||||||||||||
fioctl devices config updates <device> --apps shellhttpd | ||||||||||||
|
||||||||||||
# Set the docker apps and the tag: | ||||||||||||
# Set the Compose apps and the tag: | ||||||||||||
fioctl devices config updates <device> --apps shellhttpd --tag master | ||||||||||||
`, | ||||||||||||
|
||||||||||||
# There are two special characters: "," and "-" | ||||||||||||
# The following explains what happens if you provide a "," | ||||||||||||
# Set the Compose apps to none, meaning it will run no apps: | ||||||||||||
Comment on lines
+30
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
fioctl devices config updates <device> --apps , | ||||||||||||
|
||||||||||||
# The following explains what happens if you provide a "-" | ||||||||||||
# Set the Compose apps to preset-apps (all apps on most devices): | ||||||||||||
# The system will look in the following locations in order to get the complete config: | ||||||||||||
Comment on lines
+35
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
- /usr/lib/sota/conf.d/ | ||||||||||||
- /var/sota/sota.toml | ||||||||||||
- /etc/sota/conf.d/ | ||||||||||||
fioctl devices config updates <device> --apps - | ||||||||||||
|
||||||||||||
# Set the device tag to a preset-tag : | ||||||||||||
# The system will look in the following locations in order to get the complete config: | ||||||||||||
Comment on lines
+43
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
- /usr/lib/sota/conf.d/ | ||||||||||||
- /var/sota/sota.toml | ||||||||||||
- /etc/sota/conf.d/ | ||||||||||||
fioctl devices config updates <device> --tag -`, | ||||||||||||
} | ||||||||||||
configCmd.AddCommand(configUpdatesCmd) | ||||||||||||
configUpdatesCmd.Flags().StringP("tag", "", "", "Target tag for device to follow") | ||||||||||||
|
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.