0.0.0-empty • Published 2 years ago

cfgs v0.0.0-empty

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

cfgs - All your configs belong to you

Usage: cfg [options] [command]

Commands:

  • backup [dir] - Enables backups to a directory
  • restore [dir] - Restores from a backup
  • add [options] <name> <file> - Add a config from a file
  • update [options] <name> [file] - Update a config from a file
  • write <name> [file] - Write a config
  • remove <name> - Remove a config
  • diff <name> <file> - Diff a config compared to a file
  • list - List all configs
  • wipe [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