root

package
v0.0.0-...-dd53f76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewCmd

func NewCmd(f *cmdutil.Factory) *cobra.Command

NewCmd builds the root command with its global flags and core commands.

func Run

func Run(ctx context.Context, f *cmdutil.Factory, args []string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL