Cli¶
patiencepilot.ui.cli ¶
Basic command line text interface.
main ¶
main(argv: Sequence[str] | None = None) -> int
Run the command line interface.
Source code in src/patiencepilot/ui/cli.py
22 23 24 | |
run ¶
run(
argv: Sequence[str] | None = None,
*,
stdin: TextIO | None = None,
stdout: TextIO | None = None,
stderr: TextIO | None = None,
) -> int
Run the command line interface with injectable streams.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
Sequence[str] | None
|
Command line arguments without the executable name. Uses
|
None
|
stdin
|
TextIO | None
|
Input stream for state notation when |
None
|
stdout
|
TextIO | None
|
Output stream for command results. |
None
|
stderr
|
TextIO | None
|
Error and status stream. |
None
|
Source code in src/patiencepilot/ui/cli.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
build_parser ¶
build_parser() -> argparse.ArgumentParser
Return the CLI argument parser.
Source code in src/patiencepilot/ui/cli.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |