fix(cli): allow multiple depends-on args in coder exp sync want (#23869)

Previously the command required exactly two arguments, forcing users to
run it multiple times to declare multiple dependencies for a single
unit.
This accepts variadic depends-on arguments so all dependencies can be
declared in one call:

```
coder exp sync want my-unit dep-1 dep-2 dep-3
```

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Marcin Tojek <mtojek@users.noreply.github.com>
This commit is contained in:
Max Schwenk
2026-04-01 15:55:32 +00:00
committed by GitHub
co-authored by Claude Opus 4.6 Marcin Tojek
parent dee5ec51c0
commit 1cc23a3144
4 changed files with 46 additions and 14 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ SUBCOMMANDS:
ping Test agent socket connectivity and health
start Wait until all unit dependencies are satisfied
status Show unit status and dependency state
want Declare that a unit depends on another unit completing before it
want Declare that a unit depends on other units completing before it
can start
OPTIONS: