From d3d695bb338d85e69524019d40b404a99c6b09a6 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 3 Dec 2022 05:38:13 -0500 Subject: [PATCH] Add in the git templates for testing. --- commands/create.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/create.js b/commands/create.js index af590ee..2ff5b2a 100644 --- a/commands/create.js +++ b/commands/create.js @@ -8,6 +8,7 @@ export const description = "Test command."; export const options = [ ["--repo", "repository to dupe and setup", BANDO_GIT], + ["--templates", "templates directory to use for setups", "commands/templates"] ]; export const argument = ["", "name of the project"]; @@ -22,7 +23,7 @@ export const main = async (target, opts) => { process.exit(1); } catch(error) { // access is stupid, it throws an exception but we want the negative response as a positive outcome - exec_i(`git clone --depth 1 ${BANDO_GIT} ${target}`); + exec_i(`git clone --depth 1 ${BANDO_GIT} ${target} --templates=${opts.templates}`); process.exit(0); } }