Documentation
¶
Overview ¶
Package root builds the `edu` root command and dispatches unknown commands to plugins. See Run for the dispatch mechanism.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes argv for the edu host.
It pre-scans args before Cobra sees them. Host flags before the first word are recognised by the root persistent flag set; the first word that is not a flag is the command. A core command, "help", "completion" or the Cobra completion hooks go to Cobra unchanged. Any other word is a plugin name: the remaining args are forwarded raw, after host flags in them (-c, -o, --yes, --insecure-storage) are also applied to the host. Cobra would otherwise strip or reject flags it does not own, so the plugin would not see its own flags.
Types ¶
This section is empty.