A lightweight Python utility for file creation and template generation from XDG_TEMPLATES_DIR
Project description
makefiles-cli - Command line interface for XDG_TEMPLATES_DIR
makefiles-cli is a simple commandline tool to create files and templates. It can create one or more empty files or any template defined in XDG_TEMPLATES_DIR. It also has support for fzf to make it easier to find template.
Usage
Create empty files:
mkfile example1 example2
List all available templates:
mkfile --list
Create template from any template defined in XDG_TEMPLATES_DIR:
mkfile script.py --template="pyscript.py"
Create template using fzf as picker to pick template interactively:
mkfile script.py --template --picker="fzf"
Run mkfile --help for all the available options.
Installation
Requirements:
- python3 (python3.10 or greater)
- pip
You can install makefiles-cli directly from PyPI using pip:
pip install makefiles-cli
Or if you love to stay on bleeding edge, install directly from github:
pip install git+https://github.com/Rid1FZ/makefiles-cli
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 Distribution
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 makefiles_cli-2.1.0.tar.gz.
File metadata
- Download URL: makefiles_cli-2.1.0.tar.gz
- Upload date:
- Size: 81.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3785aab381c32f58d52e0f2ddac982f9c663b5da3c5aac633dbb7dba52cac4f
|
|
| MD5 |
86fa5da28d3697ca0936ef3dbd8424e2
|
|
| BLAKE2b-256 |
d820c66256c287b4a2d9d69c6a19e696cace9c2eced2a8414af1a3073a1b3813
|
Provenance
The following attestation bundles were made for makefiles_cli-2.1.0.tar.gz:
Publisher:
publish.yml on Rid1FZ/makefiles-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
makefiles_cli-2.1.0.tar.gz -
Subject digest:
b3785aab381c32f58d52e0f2ddac982f9c663b5da3c5aac633dbb7dba52cac4f - Sigstore transparency entry: 2063720263
- Sigstore integration time:
-
Permalink:
Rid1FZ/makefiles-cli@18003555957b2447b8e2ff5e1679aace1ac7d10b -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/Rid1FZ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@18003555957b2447b8e2ff5e1679aace1ac7d10b -
Trigger Event:
push
-
Statement type:
File details
Details for the file makefiles_cli-2.1.0-py3-none-any.whl.
File metadata
- Download URL: makefiles_cli-2.1.0-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b70f977e60c0e99be9f56d595031b79cf378cb965788f1a87d85dff4452fd0ac
|
|
| MD5 |
27c66f5bc0bdddd93f9b19d1b9c86756
|
|
| BLAKE2b-256 |
423933c22cc1bb73d550f90d306beb7f18263255f4c2bb9036c0123c3248cae5
|
Provenance
The following attestation bundles were made for makefiles_cli-2.1.0-py3-none-any.whl:
Publisher:
publish.yml on Rid1FZ/makefiles-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
makefiles_cli-2.1.0-py3-none-any.whl -
Subject digest:
b70f977e60c0e99be9f56d595031b79cf378cb965788f1a87d85dff4452fd0ac - Sigstore transparency entry: 2063720291
- Sigstore integration time:
-
Permalink:
Rid1FZ/makefiles-cli@18003555957b2447b8e2ff5e1679aace1ac7d10b -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/Rid1FZ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@18003555957b2447b8e2ff5e1679aace1ac7d10b -
Trigger Event:
push
-
Statement type: