root

package
v0.5.9 Latest Latest
Warning

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

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

Documentation

Overview

Package root implements the root command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteContextC added in v0.5.9

func ExecuteContextC(ctx context.Context, cmd *cobra.Command) (*cobra.Command, error)

ExecuteContextC runs cmd and rejects unknown subcommands of help-only groups. Cobra falls back to help for such a group without validating its arguments, so the help function is wrapped for this call: it reads the arguments Cobra has already parsed and does not parse flags itself.

func New

func New() *cobra.Command

New initializes and returns a reference to a new root command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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