Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quiye committed Feb 26, 2019
1 parent 9c1a88f commit 6ba0efb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ cat sample.yaml
# shared variables
shared:
environment:
REPLICATION: 2
REPLICATION: 3
CONSISTENCY: ONE
# variables for production
prod:
Expand All @@ -31,7 +31,7 @@ dev:
environment:
URL: http://dev-env.com
PORT: 80
CONSISTENCY: THREE
CONSISTENCY: TWO
```

From above file, we can extract productional environment variables by varust.
Expand All @@ -50,7 +50,7 @@ On the other hand, we can extract variables for develop environment.
$ varust dev.environment sample.yaml
PORT=80
URL=http://dev-env.com
CONSISTENCY=THREE
CONSISTENCY=TWO
```

### Options
Expand All @@ -64,7 +64,7 @@ Look below !
```sh
$ varust dev.environment --on shared.environment sample.yaml
PORT=80
REPLICATION=2
CONSISTENCY=THREE
REPLICATION=3
CONSISTENCY=TWO
URL=http://dev-env.com
```
4 changes: 2 additions & 2 deletions sample.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# shared variables
shared:
environment:
REPLICATION: 2
REPLICATION: 3
CONSISTENCY: ONE
# variables for production
prod:
Expand All @@ -15,4 +15,4 @@ dev:
environment:
URL: http://dev-env.com
PORT: 80
CONSISTENCY: THREE
CONSISTENCY: TWO

0 comments on commit 6ba0efb

Please sign in to comment.