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.1.0.tar.gz (81.9 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.1.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

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

Hashes for makefiles_cli-2.1.0.tar.gz
Algorithm Hash digest
SHA256 b3785aab381c32f58d52e0f2ddac982f9c663b5da3c5aac633dbb7dba52cac4f
MD5 86fa5da28d3697ca0936ef3dbd8424e2
BLAKE2b-256 d820c66256c287b4a2d9d69c6a19e696cace9c2eced2a8414af1a3073a1b3813

See more details on using hashes here.

Provenance

The following attestation bundles were made for makefiles_cli-2.1.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.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

Hashes for makefiles_cli-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b70f977e60c0e99be9f56d595031b79cf378cb965788f1a87d85dff4452fd0ac
MD5 27c66f5bc0bdddd93f9b19d1b9c86756
BLAKE2b-256 423933c22cc1bb73d550f90d306beb7f18263255f4c2bb9036c0123c3248cae5

See more details on using hashes here.

Provenance

The following attestation bundles were made for makefiles_cli-2.1.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