From 8b4ba52b7da4410acc987672ba5f91e58b3e8b97 Mon Sep 17 00:00:00 2001 From: ispyhumanfly Date: Thu, 26 Oct 2023 20:58:53 -0400 Subject: [PATCH] feat: euphoria template added to init command. --- packages/iniquity/src/commands/init.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/iniquity/src/commands/init.ts b/packages/iniquity/src/commands/init.ts index e4ec702..fbc7856 100644 --- a/packages/iniquity/src/commands/init.ts +++ b/packages/iniquity/src/commands/init.ts @@ -61,7 +61,7 @@ export class Init implements yargs.CommandModule { .options("template", { type: "string", default: "default", - choices: ["default", "eternity", "mybbs"], + choices: ["default", "eternity", "mybbs", "euphoria"], describe: "Specify a template to use when constructing your new iniquity bbs.", demandOption: false }) @@ -94,6 +94,13 @@ export class Init implements yargs.CommandModule { copyfiles([path.join(__dirname, "../../../../templates/src/eternity/.vscode/*"), ".vscode"], { up: true, all: true }, (err) => {}) } + if (argv.template === "euphoria") { + copyfiles([path.join(__dirname, "../../../../templates/src/euphoria/*"), "."], { up: true, all: true }, (err) => {}) + copyfiles([path.join(__dirname, "../../../../templates/src/euphoria/.iniquity/*"), ".iniquity"], { up: true, all: true }, (err) => {}) + copyfiles([path.join(__dirname, "../../../../templates/src/euphoria/.vscode/*"), ".vscode"], { up: true, all: true }, (err) => {}) + copyfiles([path.join(__dirname, "../../../../templates/src/euphoria/assets/*"), "assets"], { up: true, all: true }, (err) => {}) + } + console.log(`Iniquity template ${argv.template} installed.`) setTimeout(() => {