quickie.context.Context
- class quickie.context.Context(*, program_name, cwd: str, env: Mapping, console: Console, namespace: NamespaceABC, config: CliConfig)
The context for a task.
- __init__(*, program_name, cwd: str, env: Mapping, console: Console, namespace: NamespaceABC, config: CliConfig)
Initialize the context.
- Parameters:
program_name – The name of the program. Usually qck or qckg.
cwd – The current working directory.
env – The environment variables.
console – A Console instance.
namespace – The namespace for the task.
config – The configuration for the CLI.
Methods
__init__(*, program_name, cwd, env, console, ...)Initialize the context.
copy()Copy the context.