@jondotsoy/envs 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/envs.js +340 -226
- package/package.json +1 -1
- package/ui/chunk-293xt424.js +239 -0
- package/ui/chunk-nqsgf5a0.css +1 -0
- package/ui/index.html +14 -0
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ Run the commands inside the repo or any of its worktrees. Inside a worktree, `.e
|
|
|
39
39
|
| Command | What it does |
|
|
40
40
|
| --- | --- |
|
|
41
41
|
| `envs edit` | Runs `init` if `.envs/values.yml` does not exist yet, then runs `pull`, opens `values.yml` with `code -w` and, when the editor closes, runs `push`. If the editor fails, it does not `push`. |
|
|
42
|
+
| `envs edit --ui` | Same `init` and `pull`, but instead of VS Code it starts a local server (`127.0.0.1`, random port) and opens a React web editor with the values of `values.yml` (worktree profiles, defaults and per-worktree values). The **Save** button in the top right corner writes `values.yml` and runs `push`. Stop the server with Ctrl+C. |
|
|
42
43
|
| `envs init` | Creates `.envs/`, `.envs/.gitignore` (containing `*`) and an empty `.envs/values.yml`. Does not overwrite existing files. |
|
|
43
44
|
| `envs pull` | Reads the `.env` of the main repo and of each worktree and writes it to `values.yml`. Variables that are no longer in a `.env` are removed from `values.yml` for that worktree. |
|
|
44
45
|
| `envs push` | Writes `values.yml` to the `.env` of each worktree. Updates existing variables in place, appends new ones at the end, and keeps comments and variables that are not in `values.yml`. |
|