Skip to content

Commit 09460b7

Browse files
v2.0.3 👑
1 parent 6ae3e10 commit 09460b7

5 files changed

Lines changed: 5 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [2.0.3] - 2023-04-14 :crown:
8+
## [2.0.3] - 2023-04-15 :crown:
99
- Adopts `Rich`, through `rich-click` for the project CLI.
1010
- Renames the recently added `secrets` feature to `settings`.
1111
- Adds support for configuring nested objects using "." separator.

README.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -311,32 +311,6 @@ User settings (stored in the user's folder) can be handled using the provided `c
311311

312312
These settings can be useful to store secrets and other values during local development, or in general when working with desktop applications.
313313

314-
---
315-
316-
The CLI by default uses [rich-click](https://github.com/ewels/rich-click), but
317-
`rich` can be disabled using the environment variables `POOR_CLI=1` or
318-
`NO_RICH=1`.
319-
320-
```
321-
config settings
322-
Usage: config settings [OPTIONS] COMMAND [ARGS]...
323-
324-
Commands to handle user settings, stored in the user's folder.
325-
326-
Options:
327-
--help Show this message and exit.
328-
329-
Commands:
330-
del Delete a setting for a project, by key.
331-
get Get a setting in a user file by key.
332-
info Show information about settings for a project.
333-
init Initialize user settings for the current folder.
334-
list List all projects configured for settings stored in the user...
335-
set Set a setting in a user file by key and value.
336-
set-many Set many settings, read from a JSON file passed through stdin.
337-
show Show the local settings for a project.
338-
```
339-
340314
### Overriding nested values
341315

342316
It is possible to override nested values by environment variables or

config/cli/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

3-
from config.common.cli import click
3+
import rich_click as click
4+
45
from config.user.cli import settings
56

67

config/common/cli.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

config/user/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
from pathlib import Path
55
from typing import Optional
66

7+
import rich_click as click
8+
79
from config.common import apply_key_value
8-
from config.common.cli import click
910
from config.user import UserSettings
1011

1112

0 commit comments

Comments
 (0)