Skip to content

Rid1FZ/makefiles-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A lightweight Python utility for file creation and template generation from XDG_TEMPLATES_DIR

Topics

Resources

License

Stars

Watchers

Forks