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-1.0.0.tar.gz (35.6 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-1.0.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: makefiles_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for makefiles_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4ac9f3f00bf9d4b7968117e2bd41b21178881ecdf218d3c1e0315cab31a7bde5
MD5 42aeb78cb3e0f505d79d1bbf60e7e92f
BLAKE2b-256 3ccbb49b6c401ad50f215fa7ed6a93a2c748ae762eb457fb4443aafe15fa6206

See more details on using hashes here.

File details

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

File metadata

  • Download URL: makefiles_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for makefiles_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9808f3f6efb6621216fa98d184c706d8a545fc1c1993abddafc65a9a82b24213
MD5 7aa1a1db76c336e1562449927a398778
BLAKE2b-256 a6b8362000a5d9214071e652cccf8354f86a2aa49a09c93c251782382a30736c

See more details on using hashes here.

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