diff --git a/src/commands/init.ts b/src/commands/init.ts index 1d7b97c83..7aef47536 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -29,7 +29,7 @@ import getCndiRunGitHubWorkflowYamlContents from "src/outputs/cndi-run-workflow. const initLabel = ccolors.faded("\nsrc/commands/init.ts:"); -const defaultResponsesFilePath = path.join(Deno.cwd(), "responses.yaml"); +const defaultResponsesFilePath = path.join(Deno.cwd(), "cndi_responses.yaml"); function getFinalEnvString( templatePartial = "", @@ -104,7 +104,7 @@ const initCommand = new Command() "-l, --deployment-target-label ", "Specify a deployment target", ) - .option("-k, --keep", "Keep responses in responses.yaml") + .option("-k, --keep", "Keep responses in cndi_responses.yaml") .action(async (options) => { let template: string | undefined = options.template; let overrides: Record = {}; @@ -297,7 +297,7 @@ const initCommand = new Command() env = templateResult.env; if (options.keep) { await stageFile( - "responses.yaml", + "cndi_responses.yaml", YAML.stringify(templateResult.responses), ); } diff --git a/src/outputs/gitignore.ts b/src/outputs/gitignore.ts index cbcf11cfe..1f6f5770c 100644 --- a/src/outputs/gitignore.ts +++ b/src/outputs/gitignore.ts @@ -12,7 +12,7 @@ cndi/terraform/stacks/cndi_stack/*.tfstate* cndi/terraform/stacks/cndi_stack/.terraform/ cndi/terraform/stacks/cndi_stack/terraform.tfstate .DS_Store -responses.yaml +cndi_responses.yaml `; return gitignoreContents.trim(); } diff --git a/src/tests/commands/init_test.ts b/src/tests/commands/init_test.ts index 25c53020a..9ebdee50a 100644 --- a/src/tests/commands/init_test.ts +++ b/src/tests/commands/init_test.ts @@ -178,7 +178,7 @@ Deno.test( }); await t.step("test", async () => { - /* const { status } = */ await runCndi( + /* const { status } = */ await runCndi( "init", "-t", "airflow", @@ -208,7 +208,7 @@ Deno.test( }); await t.step("test", async () => { - /* const { status } = */await runCndi( + /* const { status } = */ await runCndi( "init", "-t", "airflow",