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
6 changes: 3 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
sudo awf [options] -- <command>

Options:
--allow-domains <domains> Comma-separated list of allowed domains. Supports wildcards and protocol prefixes:
-d, --allow-domains <domains> Comma-separated list of allowed domains. Supports wildcards and protocol prefixes:
- github.com: exact domain + subdomains (HTTP & HTTPS)
- *.github.com: any subdomain of github.com
- api-*.example.com: prefix wildcards
Expand All @@ -20,11 +20,11 @@ Options:
--block-domains-file <path> Path to file containing blocked domains (one per line or
comma-separated, supports # comments)
--log-level <level> Log level: debug, info, warn, error (default: info)
--keep-containers Keep containers running after command exits (default: false)
-k, --keep-containers Keep containers running after command exits (default: false)
--tty Allocate a pseudo-TTY for the container (required for interactive
tools like Claude Code) (default: false)
--work-dir <dir> Working directory for temporary files
--build-local Build containers locally instead of using GHCR images (default: false)
-b, --build-local Build containers locally instead of using GHCR images (default: false)
--agent-image <value> Agent container image (default: "default")
Presets (pre-built, fast):
default - Minimal ubuntu:22.04 (~200MB)
Expand Down
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ program
.description('Network firewall for agentic workflows with domain whitelisting')
.version(version)
.option(
'--allow-domains <domains>',
'-d, --allow-domains <domains>',
'Comma-separated list of allowed domains. Supports wildcards and protocol prefixes:\n' +
' github.com - exact domain + subdomains (HTTP & HTTPS)\n' +
' *.github.com - any subdomain of github.com\n' +
Expand All @@ -692,7 +692,7 @@ program
'info'
)
.option(
'--keep-containers',
'-k, --keep-containers',
'Keep containers running after command exits',
false
)
Expand All @@ -707,7 +707,7 @@ program
path.join(os.tmpdir(), `awf-${Date.now()}`)
)
.option(
'--build-local',
'-b, --build-local',
'Build containers locally instead of using GHCR images',
false
Comment on lines 667 to 712
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New short flags (-d/-k/-b) are user-facing behavior changes, but the existing CLI tests only exercise long-form flags and helper functions. Add coverage to ensure Commander parses these short aliases correctly (including that -d requires a value and -k/-b set the expected booleans).

Copilot uses AI. Check for mistakes.
)
Expand Down
Loading