cleo icon indicating copy to clipboard operation
cleo copied to clipboard

Cleo allows you to create beautiful and testable command-line interfaces.

Results 92 cleo issues
Sort by recently updated
recently updated
newest added

Resolves https://github.com/python-poetry/cleo/issues/142.

With the beta version 1.2.0b1 of Poetry I can see that sub-commands and their options show up in the generated zsh completion script. However, **there is some weird behavior when...

bug

As reported in https://github.com/python-poetry/poetry/issues/5128, `--version` is currently a global option in cleo. This makes the behavior of some commands pretty weird, since passing `--version` to any command will exit the...

enhancement

From https://github.com/sdispater/cleo/blob/8c3ba5847f33b9da16143f2bba9e3999bb6d3cd5/cleo/io/inputs/input.py#L68-L77 `length` param default value is `None` but `typing.IO.readline` takes an `int` as parameter: ```python @abstractmethod def readline(self, limit: int = -1) -> AnyStr: pass ``` which causes ```shell...

bug
requires confirmation

```console $ poetry --version Poetry (version 1.2.0b2dev0) $ echo $BASH_VERSION 5.1.16(1)-release $ poetry completions bash | bash bash: line 40: syntax error near unexpected token `clear' bash: line 40: `...

I'm facing an issue with poetry, but I believe it isn't poetry's fault. Environment is: python `3.8.10`, poetry `1.2.0a2` and cleo `1.0.0a4`. Command `poetry cache clear pypi --all -vvv` crashes...

https://github.com/sdispater/clikit/blob/master/src/clikit/ui/components/progress_indicator.py#L31 https://github.com/sdispater/cleo/blob/master/cleo/ui/progress_indicator.py#L35 ```python class ProgressIndicator(object): def __init__(self, ...): if isinstance(io, IO): io = io.error_output ``` I could not infer the reasoning behind this. I would think `stderr` should be empty...

I'm using this sample `app.py`: ```py from cleo.commands.command import Command from cleo.application import Application from cleo.helpers import argument class FooCommand(Command): name = "foo" arguments = [argument("baz", "The baz argument.")] def...

bug

I want to add an option with name `n` ``` {--n|names=* : Some description} ``` But I get this: ``` Traceback (most recent call last): File "/Users/an/Desktop/vkquick/env/bin/vq", line 2, in...

enhancement

I require a way to make a cleo Command accept unknown options and arguments, and not inherit the application options. The equivalent in argparse would be something like: ```python parser.add_argument("command_args",...

feature