Skip to content
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

Use config field availability information from the sdk #577

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sosthene-nitrokey
Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey commented Oct 4, 2024

In set-config, get the type of the and metadata for the fields, including information regarding the need for power-cycle and validation of accepted values.

Depends on:

Checklist

Make sure to run make check and make fix before creating a PR, otherwise the CI will fail.

  • tested with Python3.9
  • signed commits
  • updated documentation (e.g. parameter description, inline doc, docs.nitrokey)
  • added labels

Test Environment and Execution

Relevant Output Example

python nitropy.py nk3 set-config piv.disabled False
Command line tool to interact with Nitrokey devices 0.6.0
Critical error:
Unknown config value. Expected Bool, got `False`. Unknown config values can only be set if the --force/-f flag is set.  Aborting.
python nitropy.py nk3 set-config unknown-value False
Command line tool to interact with Nitrokey devices 0.6.0
Changing configuration values can have unexpected side effects, including data loss.
This should only be used for development and testing.
Critical error:
Unknown config values can only be set if the --force/-f flag is set.  Aborting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant