diverge

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version, commit, date string)

Execute runs the Diverge CLI with the given version metadata.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a fresh instance of the root command without version info (useful for tests).

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns the root cobra command. Use this to add subcommands from external modules before calling Execute.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App encapsulates the internal CLI app state.

func NewApp

func NewApp(version, commit, date string) *App

NewApp creates a new isolated instance of the Diverge app.

func (*App) NewRootCmd

func (a *App) NewRootCmd() *cobra.Command

NewRootCmd returns a fresh instance of the root command bound to the app.

Jump to

Keyboard shortcuts

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