The code snippet manager at the execution of a command.
Install
npm install -g {workingDir}\Snips
Don't Need to do this anymore, check commands list for setup
Navigate to the location your global npm packages are installed and find Snips here you can setup your config file here.
if you don't know where your npm global packages are installed run this command
npm list -g
Config Schema
{
"user-settings": {
"username": "username",
"cloud": true
}
}
add
-add <name> [language] [version]
adds a new snippet to your collection- language - optional parameter that allows you to have multiple snippets with the same name, but different languages
- version - optional parameter that currently is only for personal tracking, improved capabilities to come
fetch
-fetch <name> [language]
fetches a snippet and adds it to your clipboard- language - optional parameter to fetch a snippet by language, if not used the results will return the first snippet of the given name
setup
-setup
launches an editor for you to place your config json into, which will setup app environment variables and user info.- print - optional flag that will print out your current config settings to console, handy since you have to write the whole config on edits (whoops).
Local storage is provided by NeDB a NoSql local database. NeDB
Cloud storage is done through Firebase's Firestore. Firebase
- clipboardy
- external-editor
- joi
- yargs
- Storage providers listed above