shtab icon indicating copy to clipboard operation
shtab copied to clipboard

↔️ Automagic shell tab completion for Python CLI applications

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

The example in https://github.com/iterative/shtab/blob/master/examples/customcomplete.py shows how to implement a completer for `*.txt` files. The example is good to show how to use custom shell specific functions. However, a completer for...

enhancement

My application has a subparser called "build" and the application is generally used inside a directory that contains another directory named "build". I want the subparser to be completed right...

shell-bash

I didn't see any info on how to set up custom completion logic. E.g. generate a list of completions that are the result of a sql query, etc. It's unclear...

enhancement

Hi. I noticed that all the examples are centered around global scripts/entrypoints. Is it possible to also complete "python -m" runs? E.g. python -m my_module.main ?

enhancement

`argparse` has a nice feature where you can specify `%(default)s` in the help string, and it will fill in the default value as specified by the `default` keyword arg. However,...

enhancement

Pull Request #110 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...

Subcommands like `hello:world` were formerly not being escaped properly.

Pull Request #108 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...

A call to `wordify()` was missing. Example that breaks with the current version on master: ```python import argparse import shtab parser = argparse.ArgumentParser(prog="test.py") subparsers = parser.add_subparsers() sub1 = subparsers.add_parser("subcommand-1", help="First...

Pull Request #106 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...