Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.33 KB

tome-cli_alias.md

File metadata and controls

50 lines (31 loc) · 1.33 KB

tome-cli alias

Create an alias wrapper for tome-cli

Synopsis

The alias command allows you to create an alias for the tome command.

The alias command allows you to create an alias for the tome command.

An alias is a shell script that embeds common flags like root and executable name and can be stored as an alternate name.

The generated script uses the executable name and root directory specified in the tome configuration file.

To use it:

The following command will create an alias script in the ~/bin directory named 'kit'
which embeds the root directory and executable name so that 'kit' can be used in normal
circumstances with no flags or environment variables.

$> tome-cli --root $PWD/examples --executable kit alias --output ~/bin/kit

Read the template script 'tome-wrapper.sh.tmpl' for more information on how the alias is created

tome-cli alias [flags]

Options

  -h, --help            help for alias
  -o, --output string   Write the alias to a file

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 8-Aug-2024