Metadata-Version: 2.1
Name: xontrib-argcomplete
Version: 0.0.7
Summary: Adding support of kislyuk/argcomplete to xonsh.
Home-page: https://github.com/anki-code/xontrib-argcomplete
Author: anki-code
Author-email: author@example.com
License: BSD
Project-URL: Documentation, https://github.com/anki-code/xontrib-argcomplete/blob/master/README.md
Project-URL: Code, https://github.com/anki-code/xontrib-argcomplete
Project-URL: Issue tracker, https://github.com/anki-code/xontrib-argcomplete/issues
Description: <p align="center">
        Adding support of <a href="https://github.com/kislyuk/argcomplete">kislyuk/argcomplete</a> to <a href="https://xon.sh">xonsh</a>.
        </p>
        
        <p align="center">  
        If you like the idea click ⭐ on the repo and stay tuned by watching releases.
        </p>
        
        ## Install
        ```shell script
        xpip install -U xontrib-argcomplete
        echo 'xontrib load argcomplete' >> ~/.xonshrc
        # Reload xonsh
        ```
        
        ## Usage
        For example create `proto.py`:
        ```python
        #!/usr/bin/env python
        # PYTHON_ARGCOMPLETE_OK
        import argparse, argcomplete
        from argcomplete.completers import ChoicesCompleter
        
        parser = argparse.ArgumentParser()
        parser.add_argument("--proto").completer=ChoicesCompleter(('http', 'https', 'ssh', 'rsync', 'wss'))
        argcomplete.autocomplete(parser)
        args = parser.parse_args()
        print('ok')
        ```
        Then try completion:
        ```bash
        python proto.py <Tab>
        # Suggestions: --help --proto -h
        
        chmod +x proto.py
        ./proto.py --proto tt<Tab>
        # Suggestions: http https
        ```
        
        
Platform: any
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Unix Shell
Classifier: Topic :: System :: Shells
Classifier: Topic :: System :: System Shells
Classifier: Topic :: Terminals
Classifier: Topic :: System :: Networking
Classifier: License :: OSI Approved :: BSD License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
