executes a script from tome root
Usage: tome-cli exec <script> [args...]
The exec command executes a script file with the provided arguments.
The exec command will search for the script file in the root directory specified in the tome configuration flags or env vars. Paths will be joined with the root directory, the intervening directories, and the script file name.
When executed, the script will be become the tome-cli process through the syscall.Exec function.
TOME_ROOT and TOME_EXECUTABLE are injected into the environment as well as the executable name as an uppercased snake case string.
If the executable name is 'kit' the additional environment variables would be: KIT_ROOT, KIT_EXECUTABLE.
tome-cli exec [flags]
--dry-run Dry run the exec command
-h, --help help for exec
--skip-hooks Skip pre-execution hooks
-d, --debug debug logs
-e, --executable string executable name
-r, --root string root directory containing scripts (default ".")
- tome-cli - A cli tool to manage scripts as a set of subcommands