toml-cli icon indicating copy to clipboard operation
toml-cli copied to clipboard

not able to set array

Open pcjedi opened this issue 1 month ago • 2 comments

I read:

  • #34
  • #22

still I can't figure out how to make it work. I run:

toml set dependency-groups.dev [{include-group="test"}] --toml-path pyproject.toml

I expect:

dev = [{include-group="test"}]

I get:

dev = "[{include-group=test}]"

pcjedi avatar Nov 23 '25 12:11 pcjedi

toml set dependency-groups.dev[0] {include-group="test"} --toml-path pyproject.toml

gives

error: non-existent array 'dev'

there seems to be no way to create a new array

pcjedi avatar Nov 23 '25 12:11 pcjedi

Too bad no inline tables are supported yet. I need to think about how we can support that on an easy way. Suggestions are welcome.

mrijken avatar Nov 23 '25 21:11 mrijken