USSR
Universal Strategical Script Runner
IN ACTIVE DEVELOPMENT, DONT TOUCH
Install
If you have NPM:
npm i -g ussr
If you don't have NPM:
wget something here
USSR is pkg'ed, so you download a binary executable.
Usage
ussr init
ussr alias <name_of_your_alias> <real command with env vars>
ussr alias run_dev HELLO=WOLRD npm run dev
ussr alias run_another_dev ROOT=РУТ NOOP=НИЧЕГО node ./script.js
ussr alias run_other_dev HELLO=ПРИВЕТ WORLD=МИР python ./script.py
ussr run run_dev
ussr run_dev
ussr info
ussr docs md
ussr docs html
ussr list envs
ussr list alias
ussr ls env
ussr ls alias
Development
Code is readable, even person who isn't familiar with CLI development understand what is going on inside. Every contribution, issue, pull request or just a feedback are highly appreciated.
How can I help?
Just check github project. You can find current tasks. Thank you.
Motivation
Have you ever run command like this?
ROOT_DOMAIN=xx-xxxx-x.amazonaws.com/xxxxxx-xxxxxxx BASE_API=https://xxxxx.example.com/api/v1 OLD_API=https://xxxxx.notanexample.com/api/v1 STATIC_URL=https://xx-xxxx-x.amazonaws.com/xxxxxx-xxxxxxx/static OPTIONAL_ARG=xxxxxxxxxxxx I_DONT_KNOW_THIS_ARG=xxxxxxxxxxxx GOOGLE_ANALYTICS_ID=UA-xxxxxxxx-y WHERE_DO_WE_USE_THIS_VAR=xxxxxxx USE_ENCRYPTION=xxxxxxx SENTRY_ID=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@sentry.io/xxxxxxx npm run start
Do you always know what THIS_ENV_VAR does?
Do you always know which command accept certain ENV_VAR?
I have 10 commands with 25 params in my work project that looks like this.
And I can't use aliases, default fallbacks and other stuff.
Comparison
https://www.npmjs.com/package/config -
https://github.com/sindresorhus/conf
License
MIT
Author
Vladimir Metnew vladimirmetnew@gmail.com