jj/cli
pylbrecht 8b5b4c19ea cli: add jj config unset
Allow unsetting config values similar to `git config unset`.

```bash
$ jj config set --user some-key some-val
$ jj config get some-key
some-val
$ jj config unset --user some-key
$ jj config get some-key
Config error: configuration property "some-key" not found
For help, see https://martinvonz.github.io/jj/latest/config/.
```

Unsetting a key, which is part of a table, might leave that table empty.
For now we do not delete such empty tables, as there may be cases where
an empty table is semantically meaningful
(https://github.com/martinvonz/jj/issues/4458#issuecomment-2407109269).

For example:

```toml
[table]
key = "value"

[another-table]
key = "value"
```

Running `jj config unset --user table.key` will leave us with `table`
being empty:
```toml
[table]

[another-table]
key = "value"
```
2024-10-30 06:50:15 +01:00
..
examples revset: allow iterators to return evaluation errors 2024-10-18 17:09:35 -04:00
src cli: add jj config unset 2024-10-30 06:50:15 +01:00
testing style: inline variables into format strings 2024-10-04 22:29:13 +02:00
tests cli: add jj config unset 2024-10-30 06:50:15 +01:00
build.rs style: inline variables into format strings 2024-10-04 22:29:13 +02:00
Cargo.toml cargo: inherit lints configuration from workspace 2024-10-04 22:29:13 +02:00
LICENSE