@@ -80,7 +80,7 @@ To run envfetch, run `envfetch <COMMAND> <ARGS>` in your terminal.
80
80
You can run ` envfetch help ` to see help message or ` envfetch --version ` to see program's version.
81
81
82
82
### Command list
83
- ### Interactive
83
+ #### Interactive
84
84
> [ !NOTE]
85
85
> Interactive mode is currently WIP and only list variables is available.
86
86
> See for progress in https://github.com/ankddev/envfetch/issues/17 . Also it isn't in latest released ersion ` v1.4.0 ` , if you want to test it,
@@ -92,6 +92,17 @@ Usage:
92
92
` envfetch interactive `
93
93
94
94
This will start TUI, where you will be able to work with environment variables.
95
+ #### Init config
96
+ Initialize config file for ` envfetch ` .
97
+
98
+ Usage:
99
+ ` envfetch init-config `
100
+
101
+ Options:
102
+ - ` --help ` /` -h ` - showw help message.
103
+
104
+ > [ !WARNING]
105
+ > Currently this command will overwrite any existing config file!
95
106
#### Set
96
107
Set environment variable and optionally run process.
97
108
@@ -223,6 +234,15 @@ $ envfetch load --global --file .env.prod # permanent from specific file
223
234
> - On Unix-like systems, variables are stored in shell configuration files (.bashrc, .zshrc, or config.fish)
224
235
>
225
236
> Without ` --global ` flag, variables are only set for the current process run
237
+ ## Configuration
238
+ ` envfetch ` support some configuration. Fitsly, you need to run ` envfetch init-config ` to create config file, it will return you path of config.
239
+ | Platform | Path |
240
+ | -------- | ------------------------------------------------- |
241
+ | Windows | ` C:\Users\<USER>\AppData\Roaming\envfetch.toml ` |
242
+ | Linux | ` $HOME/.config/envfetch.toml ` |
243
+ | macOS | ` $HOME/Library/Application Support/envfetch.toml ` |
244
+ ### Keys
245
+ - ` print_format ` - Format string for print command
226
246
# Building from source
227
247
- Install Rust. If it already installed, update with
228
248
``` shell
0 commit comments