Skip to content

limactl: start: introduce --set <stringArray> flag to pin static config values instead of creating custom config file #1145

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

Open
Dentrax opened this issue Nov 5, 2022 · 2 comments

Comments

@Dentrax
Copy link

Dentrax commented Nov 5, 2022

Description

Since limactl already supports passing custom configuration files, sometimes it decreases the overall UX. It enforces us to create custom config files each time even we want to set just a single variable, such as localPort. Here is an example use-case:

So that we can also override the values in a file by using the '--set' flag and pass configuration from the command line as follows:

$ limactl start foo -f my_defauly.yaml --set ssh.localPort=15555 --set arch=x86_64

We can specify the --set flag multiple times. The priority will be given to the last (right-most) set specified.

--set stringArray:

set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)

/cc @developer-guy

@AkihiroSuda
Copy link
Member

This has been on plan, and will be implemented after merging #1069

@AkihiroSuda
Copy link
Member

See also #971 (comment)

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

No branches or pull requests

2 participants