A very simple app to run console commands.
-
Create a
frank.json
file:- a) Somewhere in your filesystem.
- Then, store its absolute path in the
FRANK_FILE
environment variable.
- Then, store its absolute path in the
- b) In the folder where you're going to use
frank
.
- a) Somewhere in your filesystem.
-
Run the following command:
deno install -A -f --name frank run.ts
See a frank.json sample here.
- Define the commands you want to execute. Each command is defined by:
cmd
The command itself.name
A friendly name. Optional.dir
The directory where to execute the command. Optional.
- Define the extra directories where you can execute the previous commands. Each directory is defined by:
dir
The directory itself. An absolute path.name
A friendly name. Optional.
- Install and execute
frank
. - The
Commands
section is focused by default, you can navigate it with the arrow keys. To switch to theDirectories
section presstab
. - Run a command pressing the
space
orreturn
keys. The selected command will be executed with the selected directory.- If
none
is the directory selected, then the command will be executed in the configured directory, or in the current working directory if not configured in the command. - If any other directory is selected, then that directory will be used to execute the command.
- If