Run multiple iterations of commands from a config file
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Run multiple iterations of the same command from a stored configuration.
I build this to help with building multiple packages using fpm. I had a set of commands where it was useful to share default and common arguments for each package, and the commands were complex enough that I wanted a configuration file describing them (and generic functions are painful in make). An example of using clack with fpm can be found in examples/fpm.json.
Usage
Create a configuration file:
{
"default": {
"command": "cowsay",
"options": { "-f": "default" }
},
"iterations": [
{
"arguments": ["moo"]
},
{
"arguments": ["baa"],
"options": { "-f": "sheep" }
}
]
}
Then run clack on the file:
clack examples/farm.json
And the result:
_____
< moo >
-----
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_____
< baa >
-----
\
\
__
UooU\.'@@@@@@`.
\__/(@@@@@@@@@@)
(@@@@@@@@)
`YY~~~~YY'
|| ||
Installation
Install clack with pip or pipsi.
pip install clack
Licence
clack is licensed under the MIT Licence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clack-1.2.0.tar.gz.
File metadata
- Download URL: clack-1.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af9fc495567159751de3e1ef0bb8cb52433a609c1ea0eccdf915afe6090089f9
|
|
| MD5 |
a7f96a79979382e54413a5dc80c6d7e6
|
|
| BLAKE2b-256 |
26735ad5167b32db6654ebf9683dbd520304f92b9fc1eba019457d3a5e3caa81
|
File details
Details for the file clack-1.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: clack-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2a95158d67f07ccdb447a22b1bf6b5b5fbb256edd93b077f80621cbbbbec6f3
|
|
| MD5 |
9dca47b15897931543b6efb272a049bc
|
|
| BLAKE2b-256 |
3aeed3b16731ee6154bd7c776a114a30eaec374616610819ee066695404ae73e
|
File details
Details for the file clack-1.2.0-py2-none-any.whl.
File metadata
- Download URL: clack-1.2.0-py2-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee8a48117f1ed6a916e8569e35dcf634d452d9b790c0891ed6064b62517d64f
|
|
| MD5 |
1f80f2c974d8770a9b299e186e517336
|
|
| BLAKE2b-256 |
d5f1526e62fea6221efb0d95749aa755b519f98bb273abdbe40e796a55c87916
|