Metadata-Version: 2.1
Name: pash-cmd
Version: 0.0.1
Summary: An interactive shell for Python scripts.
Home-page: https://github.com/MattMoony/pash
Author: MattMoony
Author-email: m4ttm00ny@gmail.com
License: UNKNOWN
Description: [![Documentation Status](https://readthedocs.org/projects/pash/badge/?version=latest)](https://pash.readthedocs.io/en/latest/?badge=latest)
        
        # pash
        
        ---
        
        ## About
        
        Since many of my recent Python projects have included an interactive shell / command prompt of some sorts,
        I've decided to write my own package for it, so that I won't have to think of a new way of handling commands everytime.
        
        I hope it can be of some use to other Python programmers as well, as it'll hopefully make my life a lot easier.
        
        ## Usage
        
        First, create a shell ...
        
        ```python
        from pash.shell import Shell
        sh = Shell(prompt='$ ')
        ```
        
        ... and then, simply add as many commands as you want/need!
        
        ```python
        from pash.command import Command
        sh.add_command(Command('ping', callback=pong))
        ...
        ```
        
        You can even create _cascading commands_ ...
        
        ```python
        from pash.command import CascCommand
        sh.add_command(CascCommand('go', cmds=[
            Command('north', callback=gnorth),
            Command('south', callback=gsouth),
        ]))
        ...
        ```
        
        ## Documentation
        
        The full docs are hosted [here](https://pash.readthedocs.io). (Please excuse the messiness, it's my first time working with sphinx, readthedocs, etc. ^^)
        
        ---
        
        ... Matthias M. (April 2020)
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
