Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@ jobs:
- name: Type check
run: deno task check

- name: Run tests
run: deno task test
- name: Run tests (with coverage)
run: deno task test:coverage

- name: Generate coverage report
if: success()
run: |
deno test --allow-read --allow-write --allow-env --allow-run --allow-sys --coverage=.coverage
deno coverage --detailed .coverage
run: deno task coverage

build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ Thumbs.db
# test coverage
.coverage/
cov/

# deepwork session state
.slim/deepwork/
2 changes: 2 additions & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!.slim/deepwork/
!.slim/deepwork/**
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"fmt:check": "deno fmt --check",
"lint": "deno lint",
"test": "deno test --allow-read --allow-write --allow-env --allow-run --allow-sys",
"coverage": "deno coverage --detailed",
"test:coverage": "deno test --allow-read --allow-write --allow-env --allow-run --allow-sys --coverage=.coverage",
"coverage": "deno coverage --detailed .coverage",
"build": "deno compile --output dist/stackctl src/main.ts",
"build:darwin:x64": "deno compile --target x86_64-apple-darwin --output dist/stackctl-darwin-x64 src/main.ts",
"build:darwin:arm64": "deno compile --target aarch64-apple-darwin --output dist/stackctl-darwin-arm64 src/main.ts",
Expand Down
5 changes: 2 additions & 3 deletions src/cli/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1487,9 +1487,8 @@ export function buildCli(): Command {
cli.command("plan", "Produce a deterministic plan of what an operation would do.")
.arguments("<operation:string>")
.option("--profile <name:string>", "Use a specific profile.")
.option("--stacks <names:string>", "Comma-separated list of stack names.", {
complete: completeStackNames,
} as any)
.option("--stacks <names:string>", "Comma-separated list of stack names.")
.complete("stacks", completeStackNames)
.option("--override <files:string>", "Comma-separated list of override files.")
.option("--json", "Output machine-readable JSON.")
.description(
Expand Down
Loading