A Cli app to save shell commands for latter use
Check the release page here: https://github.com/n0irx/github.com/noirvelle/syphon/releases
git clone https://github.com/n0irx/syphon
cd syphon && go install
- Go
Description: Add command shell to database
Input:
# syntax
syphon add <command_alias> "<shell_command>" [<category>]
# example
syphon add ssh-ubuntu-server "ssh -i \"my_aws_key.pem\" ubuntu@ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com" sshs
Output:
Command added:
Command: ssh -i "my_aws_key.pem" ubuntu@ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com
Alias: ssh-ubuntu-server
Category: ssh
Description: List saved command shell from database
Input:
syphon list
Output:
+----+---------------------+---------------------------------------------------+----------+
| ID | ALIAS | COMMAND | CATEGORY |
+----+---------------------+---------------------------------------------------+----------+
| 1 | ssh-ubuntu-server | ssh -i "my_aws_key.pem" | ssh |
| | | ubuntu@ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com | |
+----+---------------------+---------------------------------------------------+----------+
Description: Run your saved shell command
Input:
# syntax
syphon exec <alias>
# example:
syphone exec ssh-ubuntu-server
Description: Delete your saved command
Input:
# delete by id
syphon delete <id>
# example
syphon delete 1
# delete by alias
syphon delete --alias <alias>
# example
syphon delete --alias ssh-ubuntu-server
Output:
Command deleted:
alias: ssh-ubuntu-server
syphon <command> --help
The main purpose of this repository is to continue evolving Syphon app, making it faster and easier to use.
Syphon is MIT licensed.