1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Shared helpers for integration tests.
//!
//! Every test module declares `mod common;` at the top to pull these in.
// Not every test uses every helper.
use Command;
/// Construct a `Command` pointing at the built `grex` binary.
/// The canonical list of CLI verbs. Keep in lockstep with `cli::args::Verb`.
/// Used by tests that need to enumerate every verb (e.g. help-output checks).
pub const VERBS: & = &;
/// Verbs that previously shipped as M1 stubs. v1.4.0 wired all six
/// (`init`, `rm`, `status`, `update`, `run`, `exec`) — the slice is
/// retained empty for downstream test scaffolds that still loop over
/// "stub-shaped" verbs as a no-op; new tests should iterate `VERBS`
/// directly or target individual verbs by name.
pub const STUB_VERBS: & = &;
/// Return the minimal required positional args for a verb.
/// Verbs with no required positionals return an empty vec.
/// v1.4.0 — every verb is now wired; this helper exercises the global
/// flag parser against `<verb> --help` so the parser surface is still
/// checked without actually running the verb's side effects. The
/// previous "unimplemented" assertion is gone (v1.3.x M1 scaffolds are
/// retired). Each verb's real behavior gets its own dedicated test file.