-
Notifications
You must be signed in to change notification settings - Fork 143
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
add resin config generate --ethernet and --wifi options for noninteractive cli #410
Comments
Hey there, Thanks for the suggestion, it sounds like a good addition. The problem is that the set of question we ask to be able to generate a |
Paired with a --show-opts and --generate-opt-file fill-me-out.json/yaml I think we have a winning combination! Is there an API test suite or documentation area that addresses config generate and friends? |
Sounds good! I'll try to allocate some time for this soon. In order to get unblocked, you could use https://github.com/resin-io-modules/resin-device-config, which is the low-level module that generates configuration to create a simple script that does what you want. You could also take a look at https://github.com/resin-io/resin-config-json, which is the module that injects |
In general I get quite a few requests for completely non-interactive |
Fixed and released in 6.9.0, see the docs for Example:
|
Currently
resin config generate
does not allow specifying all necessary options via the cli.It requires navigating with arrow keys interactively via console rather than specifying parameters.
This poses a problem to automation pipelines which currently need a work around using something like expect:
https://gitlab.ii.org.nz/iichip/resin-cli/blob/latest/config.exp
Our work around just hit's enter twice to enable ethernet, but adding wifi configuration to the pipeline would be great.
@ii wrapped this expect into a Docker container to allow us to generate the config.json during our resin-os image bulid:
Front conversations
The text was updated successfully, but these errors were encountered: