Moves the environment variables from a docker compose file into a .env file.
Project description
Extract Env
CLI
$ extract-env -h
Usage: extract-env [OPTIONS]
Options:
-e, --env_folder PATH Folder where the .env file/s to/are located.
Default: ./
--env-file-name PATH Folder where the .env file/s to/are located.
Default: .env
--use-current-env / --no-use-current-env
Use the current env files. Default: True
-c, --compose-folder DIRECTORY Folder where the compose file/s are located.
Default: ./
-C, --combine / -N, --no-combine
Combine like named environment variables
across services. Default: True
-p, --prefix TEXT Prefix to add to all environment variable
names. Default: ""
--postfix TEXT postfix to add to all environment variable
names. Default: ""
-w, --write / -d, --dry-run Write the environment variables to file.
Default: True
--display / --no-display Displays the file output in the terminal.
Default: False
-u, --update-compose / -n, --no-update-compose
Update the docker compose file with the new
environment variable names. Default: True
-A, --all-files / -S, --selected-file
Update the docker compose file with the new
environment variable names. Default: True
-f, --compose_file FILE Update this/these docker compose file/s with
the new environment variable names. Used for
specifying the paths of each file. When
paths are specified it is assumed that
--selected-files has been given. Default:
None
-t, --test Test the program using files in the example
folder. Default: False
-h, --help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
extract_env-0.1.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for extract_env-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a51613807649011ba9a8d30974ab99593bd81e89b4e4d9f8d3207e4bd87d5a |
|
MD5 | b4712639e12687bd03fe3c51146f95e5 |
|
BLAKE2b-256 | f2eedeae5dbb2d2e91be54b10ae0f0d2e1203e71b45ed852ceffc7010870769c |