TestCmdUpdateTaskRejectsSessionIDFlag pins that the legacy --session-id flag is gone — flag.Parse should reject it as undefined. Use `flow do --here` to attach a session to a task instead.
(t *testing.T)
| 51 | // undefined. Use `flow do --here` to attach a session to a task |
| 52 | // instead. |
| 53 | func TestCmdUpdateTaskRejectsSessionIDFlag(t *testing.T) { |
| 54 | setupFlowRoot(t) |
| 55 | seedTask(t, "ut-no-sid-flag") |
| 56 | const sid = "11111111-2222-4333-8444-555555555555" |
| 57 | if rc := cmdUpdate([]string{"task", "ut-no-sid-flag", "--session-id", sid}); rc != 2 { |
| 58 | t.Errorf("rc=%d, want 2 for removed --session-id flag", rc) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func TestCmdUpdateTaskWorkDir(t *testing.T) { |
| 63 | setupFlowRoot(t) |
nothing calls this directly
no test coverage detected