No project description provided
Project description
Judoka
Judoka is a command line utility that lets you define project scoped commands and call them through their alias. It lets you just do (= judo) your work.
Installation
Install this library using pip
:
$ pip install judoka
Usage
Create a .judorc
file in your project root, like the example below:
greet = "cowsay 'Hi!'"
[frontend]
start = "npm run start"
[backend]
start = "docker compose up -d"
Then, just run any of the aliases:
$ judo greet
$ judo frontend:start
$ judo backend:start
Or, have a list of all the available commands in your project:
$ judo
You may also choose to include a .judorc
file in your $HOME
folder (~/.judorc
). Commands defined in this file will always be loaded first and will be overwritten if an overlapping command was found.
Shell completions
To install judo shell completions, execute judo-completions [--apply] {bash|fish|zsh}
to get instructions on how to install completions for your shell of choice. By including the --apply
option, the installation instructions will be applied for you.
Note: Don't forget to reload your shell session after installation to load the completions.
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd judoka
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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
Built Distribution
File details
Details for the file judoka-0.3.1.tar.gz
.
File metadata
- Download URL: judoka-0.3.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55bb530f6783fb5720c6b852d8576b1defb818521727ffc70c7943675db7b5e |
|
MD5 | ec3843e501cef9c92227f3dc07118585 |
|
BLAKE2b-256 | 4a61d2fd1e4f481799c47f4071a8868c0e85492850015a9c4e65a381f65532cc |
File details
Details for the file judoka-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: judoka-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b690e4f484cc4830ff071331acc6d3c942bd017cfc5ceef3032d56c72d4071dd |
|
MD5 | 3889ff89022f282233986c37a43a6465 |
|
BLAKE2b-256 | 807c69ea8d3359d0f0d5c156c4427c1e420cff7b501a0b31953a9ae184700759 |