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); } }