Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ShellReturnValue

Hierarchy

Index

Properties

Methods

Properties

code

code: number

stderr

stderr: string

stdout

stdout: string

Methods

cat

  • Parameters

    • Rest ...files: string[]

    Returns ShellString

exec

  • Parameters

    Returns ChildProcess

  • Returns ExecOutputReturnValue

grep

  • grep(...files: Array<string | string[]>): ShellString
  • Parameters

    • Rest ...files: Array<string | string[]>

    Returns ShellString

sed

  • Parameters

    • replacement: string
    • file: string

    Returns ShellString

to

  • to(file: string): void
  • Analogous to the redirection operator > in Unix, but works with JavaScript strings (such as those returned by cat, grep, etc). Like Unix redirections, to() will overwrite any existing file!

    Parameters

    • file: string

      The file to use.

    Returns void

toEnd

  • toEnd(file: string): void
  • Analogous to the redirect-and-append operator >> in Unix, but works with JavaScript strings (such as those returned by cat, grep, etc).

    Parameters

    • file: string

      The file to append to.

    Returns void

Generated using TypeDoc