Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation about how envman stores data #210

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ with [bitrise](https://github.com/bitrise-io/bitrise) and [stepman](https://gith

- connect tools with each other : one tool saves an ENV, the other uses it (input & output)
- manage your environment-sets : use different ENVs for different projects
- complex environment values : if you want to store a complex input as ENV (for example a change log text/summary), `envman` makes this easy, you don't have to encode the value so that when you call bash's `export KEY=value` it will store your value as you intended. You can just give `envman` the value as it is through a `--valuefile` option or as an input stream (or just edit the related `.envstore` file manually), no encoding required.
- complex environment values : if you want to store a complex input as ENV (for example a change log text/summary), `envman` makes this easy, you don't have to encode the value so that when you call bash's `export KEY=value` it will store your value as you intended. You can just give `envman` the value as it is through a `--valuefile` option or as an input stream (or just edit the related `.envstore.yml` file manually), no encoding required.
- switch between environment sets : if you work on multiple projects where each one requires different environments you can manage this with `envman`

## Install
Expand Down Expand Up @@ -48,10 +48,11 @@ docker run --rm -it -v `pwd`:/go/src/github.com/bitrise-io/envman --name envman-
`envman` will run the command you specify
with the environments found in its environment store.

When you add a new key-value pair with `envman add` it stores
the key and value in an `.envstore` file in the current
First, run `envman init` to create an empty `.envstore.yml` file in the current directory.
Now when you add a new key-value pair with `envman add` it stores
the key and value in an `.envstore.yml` file in the current
directory (this can be changed), and when you call `envman run`
the next time the environments in the `.envstore` file will
the next time the environments in the `.envstore.yml` file will
be loaded for the command, and the command will be executed
with an environment which includes the specified environment
variables.
Expand Down