command line launcher for reoccurring tasks.
download the binary for your architecture and put it in your path.
- create
~/.launcher-config.json
- put in the following format:
[
{
"list": "for directory in $(ls -d /home/user/repos/*); do echo $(basename $directory),$directory;done",
"command": "code"
}
]
It should return a line for every directory and display name you want to use. The format is [display name],[directory]
.
e.g. myrepo,/home/user/repos/myrepo
It should contain the command you want to execute with the directory from the list
command.
e.g. code /home/user/repos/myrepo
Call the binary. It will show a list with all entries. Start typing to narrow down the option. Press enter to execute the command.
- Install
go
a) macosbrew install go
see Makefile
or do make
to see all commands, e.g. make install-linux-amd64