0.0.0-empty • Published 2 years ago
cfgs v0.0.0-empty
cfgs - All your configs belong to you
Usage: cfg [options] [command]
Commands:
backup [dir]
- Enables backups to a directoryrestore [dir]
- Restores from a backupadd [options] <name> <file>
- Add a config from a fileupdate [options] <name> [file]
- Update a config from a filewrite <name> [file]
- Write a configremove <name>
- Remove a configdiff <name> <file>
- Diff a config compared to a filelist
- List all configswipe [options]
- Wipe all configs
About
So say you have an existing project
existingProject/
.eslint.json
package.json
src/
And then you decide to start a new project
newProject/
src/
Well normally, you woul just copy the .eslint.json file from one to the next.
cp existingProject/.eslint.json newProject/
But what happens when you update .eslint.json in newProject? You old project rules are out of date
Enter cfgs
Add your config and then use it elsewhere
cd existingProject
cfg add eslint .eslint.json
cd ../newProject
cfg write eslint
Make some tweaks to your config in newProject/.eslint.json
cd newProject
cfg update eslint .eslint.json
This will now update all your other versions of this config file
0.0.0-empty
2 years ago
0.0.1
5 years ago