Skip to content

Utilites Functions

🛠️ Tools · ⬅ Home


Arguments

  • count - Integer. Optional. Sets the value for any following named variables to this value.
  • variable - String. Optional. Variable to change or increment.
  • --path cacheDirectory - Directory. Optional. Use this directory path as the state directory.
  • --reset - Flag. Optional. Reset all counters to zero.
  • --separator - String. Optional. When dumping all variables use this as the separator between name and value. (Default is space: " ")
  • --line - String. Optional. When dumping all variables use this as the separator between values. (Default is newline: $'\n')

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

fileExtensionLists

Generates a directory containing files with extension as the file

Usage

fileExtensionLists [ --clean ] directory [ file0 ... ] [ --help ]

Generates a directory containing files with extension as the file names. All files passed to this are added to the @ file, the ! file is used for files without extensions. Extension parsing is done by removing the final dot from the filename: - foo.sh -> "sh" - foo.tar.gz -> "gz" - foo. -> "!"`` -foo-bar->"!"``

Arguments

  • --clean - Flag. Optional. Clean directory of all files first.
  • directory - Directory. Required. Directory to create extension lists.
  • file0 ... - String. Optional. List of files to add to the extension list.
  • --help - Flag. Optional. Display this help.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Usage

pipeRunner [ --mode mode ] [ namedPipe ] [ --writer line ... ] [ readerExecutable ... ]

Single reader, multiple writers Attempt at having docker communicate back to the outside world.

Arguments

  • --mode mode - String. Optional.
  • namedPipe
  • --writer line ... - When encountered all additional arguments are written to the runner.
  • readerExecutable ... - Callable. Optional.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error