Type Alias IShell

IShell: {
    Child: typeof Child;
    createCommand: (
        program: string,
        args: string | string[],
        options?: SpawnOptions,
    ) => Command<string>;
    createDenoCommand: (
        scriptPath: string,
        args: string[],
        config: Partial<DenoRunConfig> & SpawnOptions,
    ) => DenoCommand<string>;
    executeAppleScript: (script: string) => Promise<ChildProcess<string>>;
    executeBashScript: (script: string) => Promise<ChildProcess<string>>;
    executeNodeScript: (script: string) => Promise<ChildProcess<string>>;
    executePowershellScript: (script: string) => Promise<ChildProcess<string>>;
    executePythonScript: (script: string) => Promise<ChildProcess<string>>;
    executeZshScript: (script: string) => Promise<ChildProcess<string>>;
    hasCommand: typeof hasCommand;
    likelyOnWindows: typeof likelyOnWindows;
    makeAppleScript: (script: string) => Command<string>;
    makeBashScript: (script: string) => Command<string>;
    makeNodeScript: (script: string) => Command<string>;
    makePowershellScript: (script: string) => Command<string>;
    makePythonScript: (script: string) => Command<string>;
    makeZshScript: (script: string) => Command<string>;
    open: typeof shellxOpen;
    RPCChannel: typeof RPCChannel;
    TauriShellStdio: typeof TauriShellStdio;
    whereIsCommand: (command: string) => Promise<string | null>;
    createDenoRpcChannel<LocalAPI extends {}, RemoteAPI extends {}>(
        scriptPath: string,
        args: string[],
        config: Partial<DenoRunConfig> & SpawnOptions,
        localAPIImplementation: LocalAPI,
    ): Promise<
        {
            command: DenoCommand<string>;
            process: Child;
            rpcChannel: RPCChannel<LocalAPI, RemoteAPI>;
        },
    >;
}

Type declaration

  • Child: typeof Child
  • createCommand: (
        program: string,
        args: string | string[],
        options?: SpawnOptions,
    ) => Command<string>
  • createDenoCommand: (
        scriptPath: string,
        args: string[],
        config: Partial<DenoRunConfig> & SpawnOptions,
    ) => DenoCommand<string>
  • executeAppleScript: (script: string) => Promise<ChildProcess<string>>
  • executeBashScript: (script: string) => Promise<ChildProcess<string>>
  • executeNodeScript: (script: string) => Promise<ChildProcess<string>>
  • executePowershellScript: (script: string) => Promise<ChildProcess<string>>
  • executePythonScript: (script: string) => Promise<ChildProcess<string>>
  • executeZshScript: (script: string) => Promise<ChildProcess<string>>
  • hasCommand: typeof hasCommand
  • likelyOnWindows: typeof likelyOnWindows
  • makeAppleScript: (script: string) => Command<string>
  • makeBashScript: (script: string) => Command<string>
  • makeNodeScript: (script: string) => Command<string>
  • makePowershellScript: (script: string) => Command<string>
  • makePythonScript: (script: string) => Command<string>
  • makeZshScript: (script: string) => Command<string>
  • open: typeof shellxOpen
  • RPCChannel: typeof RPCChannel
  • TauriShellStdio: typeof TauriShellStdio
  • whereIsCommand: (command: string) => Promise<string | null>
  • createDenoRpcChannel:function