-
Notifications
You must be signed in to change notification settings - Fork 24
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
"set" array support #10
Comments
#16 is a related issue, for setting ints and bools (as well as the existing strings.) |
Thanks @jayvdb for filing this! I think the main question for how this should work is what the command-line interface for it should look like. Do you have a context where you'd like to use As illustrated in the TOML spec, a TOML array can contain a wide variety of types of values, and can mix types: nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ]
mixed_floats_and_ints = [ 0.1, 0.2, 0.5, 1, 2, 5 ]
contributors = [
"Foo Bar <foo@example.com>",
{ name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
] So ideally the interface here would both:
Gauging the second part of that requires a guess as to what's common, which is where seeing a concrete use case comes in. |
Yes please! As for the syntax, I would parse the argument as toml and use as toml if it can be parsed. A --raw flag could be used to disable this. |
As noted on the README, it isnt possible to set a key to be an array value, i.e.
foo = ["bar"]
The text was updated successfully, but these errors were encountered: