cli

package
v0.0.0-...-80ccc60 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package cli wires together the root Cobra command, its subcommands, and shared runtime concerns (logging, contextual execution) for the deputy tool. It focuses on composition: subcommand registration is delegated to the cmd subpackage (see internal/cli/cmd) so that new behavior can be added or legacy entry points retired without disturbing the public surface.

The exported Run function constructs a root command configured with descriptive long help text, attaches subcommands, and executes within a provided context. Subcommands avoid global state to keep invocation deterministic and testable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context) error

Run constructs the root command hierarchy and executes it with all subcommands registered. It is the primary entry point used by main.

Types

This section is empty.

Directories

Path Synopsis
Package cmd implements Deputy's CLI commands using the Cobra framework.
Package cmd implements Deputy's CLI commands using the Cobra framework.
Package flags provides shared parsing helpers for CLI flags.
Package flags provides shared parsing helpers for CLI flags.

Jump to

Keyboard shortcuts

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