Skip to content

Commit

Permalink
v2.0.3 👑
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoPrevato committed Apr 15, 2023
1 parent 6ae3e10 commit 09460b7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 42 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.3] - 2023-04-14 :crown:
## [2.0.3] - 2023-04-15 :crown:
- Adopts `Rich`, through `rich-click` for the project CLI.
- Renames the recently added `secrets` feature to `settings`.
- Adds support for configuring nested objects using "." separator.
Expand Down
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,32 +311,6 @@ User settings (stored in the user's folder) can be handled using the provided `c

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

---

The CLI by default uses [rich-click](https://github.com/ewels/rich-click), but
`rich` can be disabled using the environment variables `POOR_CLI=1` or
`NO_RICH=1`.

```
config settings
Usage: config settings [OPTIONS] COMMAND [ARGS]...
Commands to handle user settings, stored in the user's folder.
Options:
--help Show this message and exit.
Commands:
del Delete a setting for a project, by key.
get Get a setting in a user file by key.
info Show information about settings for a project.
init Initialize user settings for the current folder.
list List all projects configured for settings stored in the user...
set Set a setting in a user file by key and value.
set-many Set many settings, read from a JSON file passed through stdin.
show Show the local settings for a project.
```

### Overriding nested values

It is possible to override nested values by environment variables or
Expand Down
3 changes: 2 additions & 1 deletion config/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os

from config.common.cli import click
import rich_click as click

from config.user.cli import settings


Expand Down
13 changes: 0 additions & 13 deletions config/common/cli.py

This file was deleted.

3 changes: 2 additions & 1 deletion config/user/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
from pathlib import Path
from typing import Optional

import rich_click as click

from config.common import apply_key_value
from config.common.cli import click
from config.user import UserSettings


Expand Down

0 comments on commit 09460b7

Please sign in to comment.