Crate project_init [] [src]

This library provides the functions/structs/methods used by the main binary. They are included here in the hopes that they can be illuminating to users.

Modules

includes

Read in files at compile time, making them available no matter what

render

Module containing functions for rendering templates

repo
types

This module contains the structs for the configuration files.

Functions

read_toml_config

Given a PathBuf, read the .toml file there as a configuration file.

read_toml_dir

Given a filepath, read the .toml file there as containing the directories/templates. If no such file is found, read from global template directory in $HOME/.pi_templates/.

read_toml_str

Read a string containing a toml file