command_chain
module¶
-
inside_dir
(dirpath)[source][source]¶ Context manager that executes code from inside the given directory.
- Parameters
dirpath – String, path of the directory the command is being run.
-
run_inside_dir
(command, dirpath)[source][source]¶ Run a command from inside a given directory, returning the exit status.
- Parameters
command – Command that will be executed
dirpath – String, path of the directory the command is being run.
-
check_output_inside_dir
(command, dirpath)[source][source]¶ Run a command from inside a given directory, returning the command output.
- Parameters
command – Command that will be executed
dirpath – String, path of the directory the command is being run.
-
class
Executable
(command)[source][source]¶ Bases:
contextlib.ContextDecorator
An object representing some executable on a user computer.
-
class
CommandChainDispatcherRepr
(shell=None, chain=None, level=6, *args, **kwargs)[source][source]¶ Bases:
IPython.utils.ipstruct.Struct
Subclass IPython’s Struct to allow for more functionality.
-
Refer to the superclass for most methods.
-
Simply, all I've done here is to remove the double underscore from most
-
methods to improve visibility.
-
__init__
(shell=None, chain=None, level=6, *args, **kwargs)[source][source]¶ Initialize the class.
- Parameters
shell (
InteractiveShell
) – IPython instance.chain (dict) – IPython hooks.
level (int) – Passed to
reprlib.Repr
for processing visual representation.
-