Skip to main content

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


Download files

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

Source Distribution

makefiles_cli-2.0.0.tar.gz (65.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

makefiles_cli-2.0.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file makefiles_cli-2.0.0.tar.gz.

File metadata

  • Download URL: makefiles_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 65.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for makefiles_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 97f6e6276bec41614f4470bc8fb3db4f2bd75ea7b4c45aaa024ae1b7275f21e6
MD5 39483022b6e68ae038666e89ddcee4a2
BLAKE2b-256 ff928a1d2a00654cf03d02eed57db5da0ad0a0afe8bda8929ebe442ea492250f

See more details on using hashes here.

Provenance

The following attestation bundles were made for makefiles_cli-2.0.0.tar.gz:

Publisher: publish.yml on Rid1FZ/makefiles-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file makefiles_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: makefiles_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for makefiles_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee4d97b87927e8602999c8f382c045fe37db1eda6891d793a5682dcb078831a
MD5 bd6457170447c62a41a52762502dbb90
BLAKE2b-256 e850fbdaceb4383e9c94588e74a209c6cd719ea8fb6cf1ba45af46d28275ef62

See more details on using hashes here.

Provenance

The following attestation bundles were made for makefiles_cli-2.0.0-py3-none-any.whl:

Publisher: publish.yml on Rid1FZ/makefiles-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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