Skip to content

use rc + arg to write#3

Open
tomfuertes wants to merge 2 commits intocasecode:masterfrom
tomfuertes:rc-ify
Open

use rc + arg to write#3
tomfuertes wants to merge 2 commits intocasecode:masterfrom
tomfuertes:rc-ify

Conversation

@tomfuertes
Copy link

hate the way this code looks but wanted to keep it in one place for assumed future refractors. works by adding a -c var to the command that will write an rc file and/or prompt if overwriting (w/ a printed diff). the rc is read (if it exists) and provides the base which the other cli args extend.

rc docs: https://www.npmjs.com/package/rc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant