Small shell command executor
No more raw bash
scripts!
Create config in dron.yaml
and run!
Example of config see below
dron <command_name>
Development only!
dron -debug <command_name>
dron <command_name>
- Run specified commanddron -debug <command_name>
- Run specified command with debug infodron -list
- Print list of commands namedron -version
- Print application version
You can install it from AUR
Requirements:
git clone https://github.com/DizoftTeam/dron.git
cd dron
go build -o dron main.go
# For all users
sudo ln -s /home/<user>/path/to/dron /usr/local/bin/dron
File name dron.yaml
or dron.yml
All configs below is actual and work
Do not use example file in a repository - this is only for development
commands:
- name: up_www
args:
arg0: World
arg1: $env(APP_ENV)
arg2: $input
commands:
- echo Hello $arg0
- echo env_param_APP_ENV $arg1
- echo "arg0 $arg0 with quotes on end $arg1"
- echo "user input is $arg2"
- Add support for
$input
command- Getting user input like
[<arg_name>]>
- Getting user input like
commands:
- name: up_www
args:
arg0: World
arg1: $env(APP_ENV)
commands:
- echo Hello $arg0
- echo env_param_APP_ENV $arg1
- echo "arg0 $arg0 with quotes on end $arg1"
- Add support for
$env
command- If env param not find in system - error will be provided
- Bug fix — double quotes not removing after argument name
- If
.env
exist — it will be load automatically
commands:
- name: up_www
args:
arg0: World
commands:
- echo Hello $arg0
- Each command will be executing from the current folder. Means that if you are using command like
cd
- the next command will be running not from changed directory. To solve this problem you can use&&
(cd /tmp && touch main.go
)
If you found some issue - please welcome to issue create page