wrut
A utility to manage project templates.
| ⚠️ | Documentation for the wrut
utility is still very much a work-in-progress. |
| --- | :-------------------------------------------------------------------------- |
Documentation for the wrut
utility can be viewed at
https://y-mx-b.github.io/wrut/.
| ⚠️ | wrut
is not in a complete state, so this is mostly a project goal and may change. |
| --- | :---------------------------------------------------------------------------------- |
The data directory contains the templates
, projects
, tags
, and .obj
subdirectories. The .obj
directory is used by wrut
to store internal
representations of templates for faster project generation. The other three are
used to store data regarding templates, projects, and tags respectively.
The templates
and projects
directories contain symbolic links to actual
template or project directories. The tags
directory is a little more complex,
in that it stores directories named after each tag, and each of these
directories contains a templates
and projects
directory, which each contain
an empty file named after the appropriate template/project.
Example ~/.wrut
directory structure:
sh
.wrut
├── projects
│ ├── Essay # symlink; could point to ~/foo/bar, doesn't matter
│ └── wrut # file name and real path are considered separately
├── tags
│ ├── Programming
│ │ ├── projects
│ │ │ └── wrut
│ │ └── templates
│ │ └── Rust
│ └── Writing
│ ├── projects
│ │ └── Essay
│ └── templates
│ └── LaTeX
└── templates
├── Rust # symlink; same as with projects
└── LaTeX
wrut
takes a --config
argument, allowing you to specify the configuration
file to use. By default, the configuration file is located at
~/.config/wrut/config.toml
.
```toml [template] ignoredirs = [ '.git', 'target', '.build', ] ignorefiles = ['.wut.toml']
[project] ```
Configuration files are stored in the ~/.config/wrut
configuration directory.
You can run wrut --help
to get the full help message.
You can also run wrut <TYPE> <COMMAND> --help
to get more detailed information
about a given command.