cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute the root func and exit in case of errors

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates the root command for dockwatch

func PreRun

func PreRun(cmd *cobra.Command, _ []string)

PreRun sets up logging, secrets and environment before the run. It is the thin cobra-coupled shell; all configuration assembly lives in buildConfig.

func Run

func Run(c *cobra.Command, names []string)

Run is the thin entry point: it resolves configuration and options from the flags and hands control to the daemon. os.Exit and flag reading stay here; the orchestration lives behind daemon.Run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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