cmdfile runs annoying commands automatically.
Project description
cmdfile
cmdfile runs annoying commands automatically. PyPI Page here
Docs
Installation
Run python -m pip install cmdfile
in your terminal.
Usage
You can use cmdfile as a command, or as a module.
Example for using as a command:
> python -m cmdfile build
Hello
You can specify cmdfile filename with the following: python -m cmdfile tablename filename
This will run the hello
table of the cmdfile, note that the build file must be in the directory you're running the script from, example cmdfile:
(hello)
echo Hello
python -m cmdfile check temp
is the equivalent of this:
import cmdfile
cmdfile.run("check", filename="temp")
You can declare variables in the cmdfile using:
(table)
variable = some text
echo {_variable_}
some text
You can also declare variables like this:
import cmdfile
cmdfile.add_var("variable", "some text")
cmdfile.run("table")
And then this will also output some text
:
(table)
echo {_variable_}
Changelog
1.1.0
- Add variables in cmdfiles and
add_var()
function
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 cmdfile-1.1.1.tar.gz
.
File metadata
- Download URL: cmdfile-1.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5942e835b2290f63c4548bb55fdd21d1b1b205ef67a1d008c7db86f1c41f93c2 |
|
MD5 | c097b7d26b31e5e7c96bba8437931542 |
|
BLAKE2b-256 | 01cc99877ec31e6df9fb07f32b1ca15c08845b344b2d99b2394be1a54c8ba027 |
File details
Details for the file cmdfile-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: cmdfile-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3bf1039e6377ac716468ced06d0a556405fdfd2669792efae0b898ef74aea6 |
|
MD5 | 77ee4e4f53f8e50b278aeb6e8e5cd7fd |
|
BLAKE2b-256 | 00d894ba299d63257bde9f98a3a8da95b4b15baeb06c08377dcf5ef96bd0f66e |