Skip to content
/ mst Public

CLI file templating in 100 LoC (or less) with mustache and Rust.

License

Notifications You must be signed in to change notification settings

kgadek/mst

Repository files navigation

mst

A rather small CLI file templating tool written in Rust. Specifically designed to handle dotfiles (see: kgadek/yadm-bin - a yadm with mst templating).

Warning: mst assumes input is trusted. With all flags, it will run arbitrary commands and read arbitrary files as instructed by the template file. These features can be enabled by compile-time flags: --features with_include,with_cmd.
konrad@pc mst$ tokei .
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Rust                    1           76           67            0            9
 TOML                    1           11            9            0            2
===============================================================================
 Total                   2           87           76            0           11
===============================================================================

Notes

Build on macOS using:

cargo build --release --all-features

When uploading to GitHub:

  • remember to strip
  • rename to mst-"$(uname -sm | tr ' ' -)

To update README.rst run:

mst README.mst.rst > README.rst

About

CLI file templating in 100 LoC (or less) with mustache and Rust.

Topics

Resources

License

Stars

Watchers

Forks

Languages