datalad.cli.exec
Call a command interface
Provide a callable to register in a cmdline parser, for executing a parameterized command call.
- datalad.cli.exec.call_from_parser(cls, args)[source]
Executable to be registered with the parser for a particular command
- Parameters:
cls (Interface) – Class implementing a particular interface.
args (Namespace) – Populated argparse namespace instance.
- Returns:
Returns the iterable return by an command’s implementation of
__call__()
. It is unwound, in case of a generator being returned to actually trigger the underlying processing.- Return type:
iterable