Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ { | ||
"main": "src/index.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1", |
@@ -9,2 +9,30 @@ # as-a | ||
## Install | ||
npm install --global as-a | ||
## Use | ||
Create a file in your user's home directory `.as-a.ini` | ||
touch ~/.as-a.ini | ||
Create separate sections for groups of environment settings. For example | ||
```ini | ||
; this is a test section | ||
[test] | ||
name=test | ||
why=just because | ||
``` | ||
Now you can run any command (with arguments) and add the section as environment variables. | ||
$ npm run env | grep why | ||
--- nothing ---- | ||
$ as-a test npm run env | grep why | ||
why=just because | ||
Recommended to keep private settings for DEV urls, secrets, etc. | ||
### Small print | ||
@@ -11,0 +39,0 @@ |
@@ -29,3 +29,3 @@ 'use strict' | ||
const args = command.slice(1) | ||
debug(`running "${prog}" with extra env keys`, Object.keys(extraEnv), command) | ||
debug(`running "${prog}" with extra env keys`, Object.keys(extraEnv)) | ||
@@ -32,0 +32,0 @@ const proc = spawn(prog, args, spawnOptions) |
7236
83