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:
@@ -51,6 +51,7 @@ at before, restore your backup with:
|
||||
* [envr list](envr_list.md) - View your tracked files
|
||||
* [envr remove](envr_remove.md) - Remove a .env file from your database
|
||||
* [envr check](envr_check.md) - Check if files are backed up
|
||||
* [envr view](envr_view.md) - View a backed-up .env file
|
||||
* [envr version](envr_version.md) - Show envr's version
|
||||
* [envr edit-config](envr_edit-config.md) - Edit your config with your default editor
|
||||
* [envr completion](envr_completion.md) - Generate shell completion scripts
|
||||
|
||||
@@ -6,7 +6,7 @@ Import a .env file into envr
|
||||
envr backup <path> [flags]
|
||||
```
|
||||
|
||||
**Arguments:**
|
||||
### Arguments
|
||||
|
||||
* `path` — Path to .env file to backup
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Check if files are backed up
|
||||
envr check [path] [flags]
|
||||
```
|
||||
|
||||
**Arguments:**
|
||||
### Arguments
|
||||
|
||||
* `path` — Path to check (defaults to current directory) (optional)
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
Generate shell completion scripts
|
||||
|
||||
### Synopsis
|
||||
|
||||
Supported shells:
|
||||
|
||||
nushell
|
||||
@@ -13,7 +11,7 @@ Supported shells:
|
||||
envr completion <shell> [flags]
|
||||
```
|
||||
|
||||
**Arguments:**
|
||||
### Arguments
|
||||
|
||||
* `shell` — Shell to generate completions for
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
Set up envr
|
||||
|
||||
### Synopsis
|
||||
|
||||
The init command generates your initial config and saves it to
|
||||
~/.envr/config in JSON format.\n\nDuring setup, you will be prompted to select one or more ssh keys with which to
|
||||
encrypt your databse. **Make 100% sure** that you have **a remote copy** of this
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
View your tracked files
|
||||
|
||||
Table output is sorted by stored path and numbered from 1. Use 'envr view <number>' to view the contents of a backup.
|
||||
|
||||
```
|
||||
envr list [flags]
|
||||
```
|
||||
|
||||
@@ -6,7 +6,7 @@ Remove a .env file from your database
|
||||
envr remove <path> [flags]
|
||||
```
|
||||
|
||||
**Arguments:**
|
||||
### Arguments
|
||||
|
||||
* `path` — Path to .env file to remove
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Restore a .env file from the database
|
||||
envr restore <path> [flags]
|
||||
```
|
||||
|
||||
**Arguments:**
|
||||
### Arguments
|
||||
|
||||
* `path` — Path to .env file to restore
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
Remove envr configuration and database
|
||||
|
||||
### Synopsis
|
||||
|
||||
This will remove all files generated by envr from your system.
|
||||
|
||||
```
|
||||
|
||||
@@ -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