Skip to content

Added dynaconf get command to cli#730

Merged
rochacbruno merged 1 commit intomasterfrom
cli_get
Mar 31, 2022
Merged

Added dynaconf get command to cli#730
rochacbruno merged 1 commit intomasterfrom
cli_get

Conversation

@rochacbruno
Copy link
Copy Markdown
Member

Usage: dynaconf get [OPTIONS] KEY

  Returns the raw value for a settings key

Options:
  -d, --default TEXT  Default value if settings doesn't exist
  -e, --env TEXT      Filters the env to get the values
  -u, --unparse       Unparse data by adding markers such as @none, @int etc..
  --help              Show this message and exit.

Fix #650
Fix #660

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2022

Test Results (Python 3.8)

    1 files  ±0      1 suites  ±0   33s ⏱️ -8s
354 tests +5  354 ✔️ +5  0 💤 ±0  0 ±0 

Results for commit 17f3391. ± Comparison against base commit 743185e.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2022

Test Results (Python 3.10)

    1 files  ±0      1 suites  ±0   35s ⏱️ ±0s
354 tests +5  354 ✔️ +5  0 💤 ±0  0 ±0 

Results for commit 17f3391. ± Comparison against base commit 743185e.

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2022

Codecov Report

Merging #730 (17f3391) into master (743185e) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #730   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         1684      1703   +19     
=========================================
+ Hits          1684      1703   +19     
Impacted Files Coverage Δ
dynaconf/cli.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 743185e...17f3391. Read the comment docs.

@rochacbruno rochacbruno force-pushed the cli_get branch 2 times, most recently from 55f7316 to d54bd69 Compare March 31, 2022 13:04
```bash
Usage: dynaconf get [OPTIONS] KEY

  Returns the raw value for a settings key

Options:
  -d, --default TEXT  Default value if settings doesn't exist
  -e, --env TEXT      Filters the env to get the values
  -u, --unparse       Unparse data by adding markers such as @none, @int etc..
  --help              Show this message and exit.
```

Fix #650
Fix #660
@rochacbruno rochacbruno merged commit 437c06a into master Mar 31, 2022
@rochacbruno rochacbruno deleted the cli_get branch March 31, 2022 13:45
rochacbruno added a commit that referenced this pull request Apr 15, 2022
Shortlog of commits since last release:

    Anderson Sousa (1):
          Document the usage with python -m (#710)

    Andressa Cabistani (2):
          Add unique label when merging lists to fix issue #653 (#661)
          Add new validation to fix issue #585 (#667)

    Armin Berres (1):
          Fix typo in error message

    Bruno Rocha (7):
          Release version 3.1.7
          Found this bug that was duplicating the generated envlist (#663)
          Add support for Python 3.10 (#665)
          Attempt to fix #555 (#669)
          Create update_contributors.yml
          Fixing pre-coomit and docs CI
          Added `dynaconf get` command to cli (#730)

    Caneco (2):
          improvement: add brand new logo to the project (#686)
          improvement: update socialcard to match the python way (#687)

    EdwardCuiPeacock (2):
          Feature: add @Jinja and @Format casting (#704)
          Combo converter doc (#735)

    Eitan Mosenkis (1):
          Fix FlaskConfig.setdefault (#706)

    Enderson Menezes (Mr. Enderson) (2):
          Force PYTHONIOENCODING to utf-8 to fix #664 (#672)
          edit: move discussions to github tab (#682)

    Eugene Triguba (1):
          Fix custom prefix link in envvar documentation (#680)

    Gibran Herrera (1):
          Fix Issue 662 Lazy validation (#675)

    Jitendra Yejare (2):
          Load vault secrets from environment less stores or which are not written by dynaconf (#725)
          Use default value when settings is blank (#729)

    Pavel Alimpiev (1):
          Update docs link (#678)

    Ugo Benassayag (1):
          Added validate_only_current_env to validator (issue #734) (#736)

    Waylon Walker (1):
          Docs Fix Spelling (#696)

    dependabot[bot] (3):
          Bump django from 2.1.5 to 2.2.26 in /example/django_pytest_pure (#711)
          Bump mkdocs from 1.1.2 to 1.2.3 (#715)
          Bump django from 2.2.26 to 2.2.27 in /example/django_pytest_pure (#717)

    github-actions[bot] (2):
          [automated] Update Contributors File (#691)
          [automated] Update Contributors File (#732)

    lowercase00 (1):
          Makes Django/Flask kwargs case insensitive (#721)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC] Add a dynaconf show command to view a single setting [RFC] Add dynaconf get

1 participant