@ac-essentials/misc-util
    Preparing search index...

    Function shellExec

    • Executes a command in a shell, returning a promise that resolves when the command completes.

      The command is executed with shell: true, which means that shell features such as redirection and piping are available. However, this also means that arguments are not escaped, so be careful when using untrusted input.

      Parameters

      • command: string

        The command to execute (with arguments)

      • Optionaloptions: ShellExecOptions

        Options for executing the command

      Returns Promise<void>

      A promise that resolves when the command completes successfully, or rejects with a ShellExecExitError if the command fails.