Package cliutils :: Module process
[hide private]
[frames] | no frames]

Module process

source code

Classes [hide private]
  AlreadyExecuted
A command that doesn't exist has been called.
  InvalidCommand
A command that doesn't exist has been called.
  Process
A wrapper for subprocess.Popen that allows bash-like pipe syntax and simplified output retrieval.
  _shell
Singleton class that creates Process objects for commands passed.
Functions [hide private]
list
_normalize(cmd)
Turn the cmd into a list suitable for subprocess.
source code
Variables [hide private]
  sh = _shell()
Function Details [hide private]

_normalize(cmd)

source code 

Turn the cmd into a list suitable for subprocess.

Parameters:
  • cmd (str, list) - The command to be split into a list
Returns: list
The split command, or the command passed if no splitting was necessary