@ -23,6 +23,9 @@ pub enum Command {
/// Print the entire context available to templates
Context,
/// Print the path of the repo
Repo,
}
fn default_repo() -> &'static str {
@ -22,6 +22,9 @@ fn main() -> Result<()> {
serde_json::to_string_pretty(templating::context()).into_diagnostic()?
)
args::Command::Repo => {
println!("{}", args.repo.to_string_lossy())
Ok(())