shtab icon indicating copy to clipboard operation
shtab copied to clipboard

↔️ Automagic shell tab completion for Python CLI applications

Results 57 shtab issues
Sort by recently updated
recently updated
newest added

1. The choices list was formerly not being expanded correctly. 2. Removing `local IFS=$'\\n'` fixed some issues as well. Wasn't totally following why this was needed.

```python import argparse import shtab parser = argparse.ArgumentParser() shtab.add_argument_to(parser) subparsers = parser.add_subparsers(dest="command", help="a") subparsers.add_parser("test", help="test_help") parser.parse_args() ``` ```sh ❯ python test.py --print-completion zsh|head #compdef test.py # AUTOMATCALLY GENERATED by `shtab`...

enhancement
shell-zsh
p1-important
external-request

```python parser.add_argument( '--color', default='auto', type=use_color, metavar='{' + ','.join(COLOR_CHOICES) + '}', help='Whether to use color in output. Defaults to `%(default)s`.', ) ``` should replace `%(default)s` as action.default.

Resolved via `prettier -w .`

Although looking at your other actions, maybe you'd prefer pre-commit which we also support? To make this clean either fo or ideally that specific line instance needs ignoring too.

technical-debt

Pull Request #96 refactored by [Sourcery](https://sourcery.ai/github/). Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from...

Found via `codespell -q 3 -L fo`

I try to generate completes for tensorboard , only zsh failed: ``` ❯ tensorboard --print-completion zsh TensorFlow installation not found - running with reduced feature set. Traceback (most recent call...

Pull Request #93 refactored by [Sourcery](https://sourcery.ai/github/). Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from...