#CLI cleanup branch

1 messages · Page 1 of 1 (latest)

fading spruceBOT
#

Done on codex/cli-cleanup.

Changed cmd/dagger/main.go so bare dagger renders the existing root usage/subcommand list instead of dispatching to hidden shell. I kept file-argument dispatch unchanged, and preserved explicit root shell-style flags like -c by continuing to route those to shell. Added focused tests in cmd/dagger/suite_test.go.

Verified:

  • go test ./cmd/dagger -run TestNonExistent -count=0
  • go test ./cmd/dagger -run TestRunRootNoArgs -count=1
  • git diff --check
  • go build -o /tmp/dagger-cli-cleanup ./cmd/dagger
  • DAGGER_NO_UPDATE_CHECK=1 /tmp/dagger-cli-cleanup exits 0 and prints usage/commands

No other CLI polish changes made. Changes are local/uncommitted on the branch.

💻 📝

#

CLI cleanup branch

#

CLI cleanup branch
Implemented the first scoped CLI cleanup on codex/cli-cleanup: bare dagger now renders the existing root usage/subcommand list instead of dispatching to hidden shell. Explicit root shell-style flags such as -c still dispatch to shell, and file-argument dispatch is unchanged. Added focused root-run tests; verified with go tests, diff check, build, and no-arg binary smoke test. Changes are uncommitted.