- arrays delitem: add
--key
flag to access arrays of tables (see https://todo.sr.ht/~gotmax23/tomcli/9 andman tomcli-set-arrays
for more details!). - packaging: declare support for Python 3.13
- all: parsing of
SELECTOR
s is now more strict. Keys must be quoted if they contain characters that are not allowed as TOML keys without quotes. For example,tomcli-get foo.toml "multiple words"
, given thatfoo.toml
contains"multiple words" = 1234
, used to return1234
but now errors. Usetomcli-get foo.toml "'multiple words'"
instead. Trailing quotes are now handled properly, as well. - lists: the
lists
subcommand has been renamed toarrays
, to align with the TOML standard's name for that data type.lists
will perpetually remain an alias to thearrays
command; backwards compatibility is important to the tomcli project.
- doc: use proper unicode dashes in manpages
cli set del
: allow removing multiple keys in one invocationformatters
: add-F newline-keys
and-F newline-values
- Remove support for Python 3.8
cli main
: add command descriptioncli set
: allow passing multiple values to the append commandcli
: supportpython -m tomcli
doc
: add manpagesdoc
: add mkdocs configuration
cli set
: remove unnecessaryresilient_parsing
conditionalcli get
: properly handleFormatterError
exceptions
- README.md: add usage examples
- tomcli.spec: add smoke tests
- tomcli.spec: add minimal py3_test_envvars def for EPEL 9
- build: use flit_core instead of hatchling as build backend
- cli: use click instead of typer as CLI framework
- cli: allow accessing keys containing dots
- cli set: add
true
subcommand - cli set: add
false
subcommand - cli: add
--version
argument - cli: add parent
tomcli
command withset
andget
subcommands - cli get: add
-F
/--formatter
arg to customize output - cli: add
tomcli-formatters
/tomcli formatters
command to list availableget
formatters
- cli set: add
lists delitem
subcommand
- Fully drop support for Python 3.7. Support for 3.7 was officially removed in the previous release, but the metadata was not updated correctly.
- add py.typed file
- declare support for Python 3.12
- cli set: add missing help messages
- cli set: add
lists replace
andlists str
commands
- cli: improve error handling
- drop support for Python 3.7
- tomcli-set: fix typo in error message
- tomcli-set: fix recursive dictionary creation
- tomcli.spec: add gnupg2 BuildRequires
- tomcli.spec: add missing extras subpackages
- tomcli.spec: include NEWS.md
- tomcli-get: fix broken toml backend fallback
- fix pronunciation description in packaging metadata and README
- cli: add tomcli-set subcommand
- packaging: add RPM specfile
- packaging: wire up automated copr builds.
- packaging: include shell completions in the RPM specfile
- internal: cleanup and increase tomlkit compat.
Dev builds are available at
gotmax23/tomcli-dev
and releases atgotmax23/tomcli
.
Initial release of tomcli, a CLI tool for working with TOML files.
Pronounced "tohm-clee."
Currently, tomcli only provides tomcli-get
command but more are planned!