package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Aug 16, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Execute(version, commit, date string)
Execute runs the Diverge CLI with the given version metadata.
NewRootCmd returns a fresh instance of the root command without version info (useful for tests).
RootCmd returns the root cobra command. Use this to add subcommands
from external modules before calling Execute.
App encapsulates the internal CLI app state.
func NewApp(version, commit, date string) *App
NewApp creates a new isolated instance of the Diverge app.
NewRootCmd returns a fresh instance of the root command bound to the app.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.