Cotal TypeScript packages
    Preparing search index...

    Function commandWord

    The dispatcher without the command surface. @cotal-ai/cli registers every base command when it is imported; a composition root that has loaded only the commands one process runs reads the command word with commandWord and dispatches with runCli from here instead, so none of the others load. Importing this module loads no command and not the dispatcher itself.

    • The command word of argv as runCli reads it: the first word after the leading output and global flags and a -- that ends them, or undefined when argv names none.

      Parameters

      • argv: readonly string[]

      Returns string | undefined