Skip to content

Commit

Permalink
mv responses.yaml -> cndi_responses.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstonmatt committed Dec 13, 2023
1 parent a99bb0b commit 92cc6ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "",
Expand Down Expand Up @@ -104,7 +104,7 @@ const initCommand = new Command()
"-l, --deployment-target-label <deployment_target_label:string>",
"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<string, CNDITemplatePromptResponsePrimitive> = {};
Expand Down Expand Up @@ -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),
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/outputs/gitignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
4 changes: 2 additions & 2 deletions src/tests/commands/init_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Deno.test(
});

await t.step("test", async () => {
/* const { status } = */ await runCndi(
/* const { status } = */ await runCndi(
"init",
"-t",
"airflow",
Expand Down Expand Up @@ -208,7 +208,7 @@ Deno.test(
});

await t.step("test", async () => {
/* const { status } = */await runCndi(
/* const { status } = */ await runCndi(
"init",
"-t",
"airflow",
Expand Down

0 comments on commit 92cc6ff

Please sign in to comment.