cli(schedule): require --cwd when --host is set (#685)

process.cwd() is the local path and won't exist on a remote daemon, so
fail fast client-side instead of running the schedule in a wrong dir.
This commit is contained in:
Mohamed Boudra
2026-05-05 19:56:51 +07:00
parent e22b497a08
commit 14c33aad0b
4 changed files with 78 additions and 1 deletions
@@ -29,6 +29,7 @@ export function createScheduleCommand(): Command {
"--mode <mode>",
"Provider-specific mode (e.g. claude bypassPermissions, opencode build)",
)
.option("--cwd <path>", "Working directory (default: current; required with --host)")
.option("--max-runs <n>", "Maximum number of runs")
.option("--expires-in <duration>", "Time to live for the schedule"),
).action(withOutput(runCreateCommand));