foo-webview-sdk
    Preparing search index...

    Variable shellConst

    shell: {
        exec: (
            command: string,
            options?: Omit<ShellExecParams, "command">,
        ) => Promise<ShellExecResponse>;
        openExternal: (url: string) => Promise<ShellOpenExternalResponse>;
        openWith: (path: string) => Promise<ShellOpenWithResponse>;
        showInExplorer: (path: string) => Promise<ShellShowInExplorerResponse>;
        spawn: (
            executable: string,
            options?: Omit<ShellSpawnParams, "executable">,
        ) => Promise<ShellSpawnResponse>;
    } = ...

    shell — OS-level integration namespace.

    Note: spawn short-circuits with { success: false } when an empty cwd string is passed.

    Type Declaration

    • exec: (
          command: string,
          options?: Omit<ShellExecParams, "command">,
      ) => Promise<ShellExecResponse>

      Start a process from a command line and return at once.

    • openExternal: (url: string) => Promise<ShellOpenExternalResponse>

      Open an http, https, or mailto URL with the default handler.

    • openWith: (path: string) => Promise<ShellOpenWithResponse>

      Open a file with the application Windows associates with its type.

    • showInExplorer: (path: string) => Promise<ShellShowInExplorerResponse>

      Reveal a file or folder in Windows Explorer, selecting it.

    • spawn: (
          executable: string,
          options?: Omit<ShellSpawnParams, "executable">,
      ) => Promise<ShellSpawnResponse>

      Start a process from an executable and an argument list.