Query available commands and change backup format #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
khtool_commands.json
osc/limits
data for each parameter. This is used to check writability of parameters and could be used by external tools to check acceptable ranges, units etc.--backup
. They now store device parameters in a json object hierarchy instead of a list of command strings. This better reflects the structure of the parameters better and improves interoperability with other tools.TODOs
device.ip
instead ofdevice.name
inkhtool_commands.json
? Probably yes, if only to keep consistent with--backup
behavior.Decided it's fine._query_by_dict
currently populates the command dictionary with values and returns the corresponding list of command strings. This might be confusing. Split up?restore_device
next tobackup_device
.