Skip to main content

Turn shell script into cli command

Project description

clias

PyPI Changelog Tests License

Turn shell script into CLIs

Installation

Install this tool using pip:

pip install clias

Usage

For help, run:

Usage: clias [OPTIONS] COMMAND [ARGS]...

  Turn shell script into cli command

Options:
  -d, --dryrun  dry run mode, only show the rendered command
  --version     Show the version and exit.
  --help        Show this message and exit.

Commands:
  info  Show the clias config file path to be loaded

You can also use:

python -m clias --help

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd clias
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

make install-e

To run the tests:

make test

To run pre-commit to lint and format:

make check

make check detects if cli help message in README.md is outdated and updates it.

To update cli help message README.md:

make readme

this runs cog on README.md and updates the help message inside it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clias-0.1.0a0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

clias-0.1.0a0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file clias-0.1.0a0.tar.gz.

File metadata

  • Download URL: clias-0.1.0a0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for clias-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 477d1cc14cfc63be48120f9391a907db601f3ab7b650cd755509c0d92a481ed5
MD5 11797ecb3becf6264eac9eeae55e5423
BLAKE2b-256 432ab0b14bc64aded30672a9e6b28972ea6e4ea36d7929315894eccba3e7e6c3

See more details on using hashes here.

File details

Details for the file clias-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: clias-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for clias-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9322674c44ae2c530993e843a73dcf6280a5867cdc07bfbb3b1abd21751cb2aa
MD5 c8521eb80001d903b91adf02f72ad089
BLAKE2b-256 da892a3f76b3a548dae2b1d6ff9c268b8d9759f02b2b7e11c524970bf77ea5d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page