cpt 0.5.0

A filesystem tool that will copy a folder structure and if there is provided templating data when it encounders any `.tpl` files, it tries to fill it using Handlebar syntax and prints out the transformed version.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::error::Error;

pub mod args;
pub mod model;
pub use model::Cpt;

pub fn cp(from: String, to: String) -> Result<(), Box<dyn Error>> {
	Cpt::new(from, to).execute()
}

pub fn cpt(from: String, to: String, data: serde_json::Value) -> Result<(), Box<dyn Error>> {
	Cpt::new(from, to).set_data(data).execute()
}