Add in the git templates for testing.

master
Zed A. Shaw 1 year ago
parent b164a9091f
commit d3d695bb33
  1. 3
      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 = ["<target>", "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);
}
}

Loading…
Cancel
Save