Polyman Documentation - v3.1.0
    Preparing search index...

    Function generateCompletionScript

    • Generates a completion script for a shell from a Commander program. Hidden commands (such as __complete) are left out.

      Parameters

      • program: Command

        The root Commander command (polyman)

      • shell: string

        bash, zsh or fish

      Returns string

      The script, ready to be sourced or saved

      If the shell is not supported

      process.stdout.write(generateCompletionScript(program, 'bash'));