Skip to content

Commit

Permalink
test: changes to structurizr-cli path
Browse files Browse the repository at this point in the history
  • Loading branch information
andreszorro committed Nov 20, 2024
1 parent 8ea5318 commit 29fd993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
bun = "1.1.20"
jq = "1.7.1"
ruby = "3.3"
java = "latest"
java = "17"

[tasks."docs:install"]
run = "cd docs && bundle"
Expand Down
7 changes: 3 additions & 4 deletions lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ type CLIArguments = {
export?: boolean;
};

const STRUCTURIZR_CLI_COMMAND =
process.env.STRUCTURIZR_CLI_COMMAND ?? "structurizr-cli";
const STRUCTURIZR_CLI_PATH =
process.env.STRUCTURIZR_CLI_PATH ?? "structurizr-cli";

async function main(args: CLIArguments = { dest: "." }) {
console.log(
Expand All @@ -43,8 +43,7 @@ Create a Structurizr DSL scaffolding in seconds!
const workspacePath = getWorkspacePath(path);
if (!workspacePath) return;

console.log("🦊", "STRUCTURIZR_CLI_COMMAND", STRUCTURIZR_CLI_COMMAND);
return $`${STRUCTURIZR_CLI_COMMAND} export -w ${workspacePath}/workspace.dsl -f json -o ${workspacePath} || true`;
return $`${STRUCTURIZR_CLI_PATH} export -w ${workspacePath}/workspace.dsl -f json -o ${workspacePath} || true`;
};

const { workspaceGenerator, ...otherGenerators } = generators;
Expand Down

0 comments on commit 29fd993

Please sign in to comment.