Problem: paths are split by . for the get and unset commands
|
for key_part in key.split(".")[:-1]: |
It's however possible for keys to have . within themselves, for example
[section."https://github.com/octokit"]
In those cases there's no way to get to the desired path due to the . splitting.
Solution: Accept a sequence of paths parts rather than a single string. Thus instead of
$ toml get --toml-path Cargo.toml 'section["https://github.com/octokit"]'
One would do
$ toml get --toml-path Cargo.toml section https://github.com/octokit
Problem: paths are split by
.for thegetandunsetcommandstoml-cli/toml_cli/__init__.py
Line 73 in d8b2c9c
It's however possible for keys to have
.within themselves, for exampleIn those cases there's no way to get to the desired path due to the
.splitting.Solution: Accept a sequence of paths parts rather than a single string. Thus instead of
One would do