Metadata-Version: 2.4
Name: py-shell-runner
Version: 0.1.0.dev4
Summary: Python for shell scripting
Project-URL: repository, https://github.com/ThakeeNathees/pyshrun
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: colorama>=0.4.6
Requires-Dist: pydantic>=2.11.7
Requires-Dist: pyyaml>=6.0.2
Dynamic: license-file


## run.yml

```yaml
# py-shell-runner is an npm like run configuration and shell scripting package.
# you can define your commands in a run.yml file and simply run with the run
# command, like `run build`, `run clean`, etc.
#
#       ______   __    __  _______
#      /      \ /  |  /  |/       \
#     /$$$$$$  |$$ |  $$ |$$$$$$$  |
#     $$ |  $$/ $$ |  $$ |$$ |  $$ |
#     $$ |      $$ \__$$ |$$ |  $$ |
#     $$ |      $$    $$/ $$ |  $$ |
#     $$/        $$$$$$/  $$/   $$/
#
#
# Getting started:
#
#   # Install with any of the bellow command.
#   .---------------------------------------.
#   | uv add py-shell-runner                |
#   | pip install py-shell-runner           |
#   '---------------------------------------'
#
#   # Create a `run.yml` file in your project root
#     run --init
#
#   # Run the commands defined in `run.yml`
#     run build
#

commands:

  push:
      - desc: Commit and push changes
      - throw: true
      - pytest
      - git add .
      - git commit
      - git push


  publish:
      desc: Build and publish the package
      ensure_env:
          - UV_PUBLISH_TOKEN
      cmd:
          - rm -r dist
          - throw: true
          - pytest
          - uv build
          - uv publish


  clean:
      - desc: Clean up build artifacts
      - rm -r dist
      - rm -r src/py_shell_runner.egg-info
```
