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
//! Port of `_assign` from `Completion/Zsh/Context/_assign`.
//!
//! Full upstream body (3 lines verbatim):
//! ```text
//! sh:1 #compdef -assign-parameter-
//! sh:2
//! sh:3 _parameters -g "^*readonly*" -S ''
//! ```
//!
//! sh:3 is a plain COMMAND WORD, so it resolves the way `execcmd` resolves
//! one — shfunc/port/plugin (`Src/exec.c:3105-3109`), then builtin, then
//! `$PATH`, then `Src/exec.c:903`'s `command not found` and c:908's status
//! 127 — which is what `shared::dispatch_action_command` does. On this host
//! the name is genuinely unresolvable: `$fpath`'s first `_parameters`
//! (`~/.zpwr/autoload/comp_utils/_parameters`) is UNTAGGED, so `compinit`
//! sh:507-526 registers nothing for it and the Rust port stands aside for the
//! file (router.rs `has_fpath_override`).
use cratedispatch_action_command;
/// `_assign` — `-assign-parameter-` context completion: list
/// writable (non-readonly) parameters with no suffix.