konnect
v1.0.5
Published
Quick way to run frequent and long linux or OSX commands.
Downloads
2
Readme
Konnect
Quick way to run frequent and long linux or OSX commands.
Problem: Things like SSH may have domain name or IP address with location to key, are difficult to remember and long to type.
Solution: Store them under a simple name and run them frequently using Konnect.
##Install
$ npm install konnect -g
##Options
Usage: kon <name>
Commands:
* kon <name>
add <name> <command> [keywords...] add a command
list list all commands
search <query> search by a query string
rename <oldName> <newName> rename a command name
change <name> <newCommand> [keywords...] change values by name
delete <name> delete by name
Quick way to run frequent and long commands
Options:
-h, --help output usage information
-V, --version output the version number
##Usage
###Run
$ kon BD
###Add Add a command
$ kon add BD "ssh -tti /path/to/key.pem [email protected]" shh api server aws
Result:
Command successfully added
###List List all names, commands and keywords
$ kon list
Result:
Name Command Keywords
BD ssh -tti /path/to/key.pem [email protected] shh,api,server,aws
LD ssh -tti /path/to/key.pem [email protected] shh,admin,server,aws
###Search Search with a word
$ kon search api
Result:
Name Command Keywords
BD ssh -tti /path/to/key.pem [email protected] shh,api,server,aws
###Rename
$ kon rename BD GB
Result:
BD successfully renamed to GB
###Change Change values by name
$ kon change BD "ssh -tti /path/to/key.pem [email protected]" shh api server aws
Result:
Command successfully added
###Delete Delete an item by name
$ kon delete BD
Result:
BD successfully deleted