Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.26 KB

File metadata and controls

51 lines (33 loc) · 1.26 KB

tome-cli exec

executes a script from tome root

Synopsis

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]

Options

      --dry-run      Dry run the exec command
  -h, --help         help for exec
      --skip-hooks   Skip pre-execution hooks

Options inherited from parent commands

  -d, --debug               debug logs
  -e, --executable string   executable name
  -r, --root string         root directory containing scripts (default ".")

SEE ALSO

  • tome-cli - A cli tool to manage scripts as a set of subcommands
Auto generated by spf13/cobra on 10-Dec-2025