mirror of
https://github.com/sbrow/envr.git
synced 2026-10-25 08:41:55 -04:00
feat: Added view command for opening files.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
## envr view
|
||||
|
||||
View a backed-up .env file
|
||||
|
||||
If no path is provided, the user will be asked to select one from a list. You may also pass the number from the "#" column of `envr list` instead of the full path. If a partial path is passed, the closest match will be opened.
|
||||
|
||||
```
|
||||
envr view [path] [flags]
|
||||
```
|
||||
|
||||
### Arguments
|
||||
|
||||
* `path` — Path or substring, or number of a backed-up file. (optional)
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help show this documentation
|
||||
-c, --config-file config file (default "~/.envr/config.json")
|
||||
--color Whether or not to colorize output (default 'auto')
|
||||
-p, --stdout Print file contents directly to stdout instead of using a pager
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [envr](envr.md) - Manage your .env files.
|
||||
Reference in New Issue
Block a user