cmd

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface for the Corral application.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the build version of Corral. It is overridden at release time via -ldflags "-X github.com/sebastienrousseau/corral/cmd.Version=<version>" (set by goreleaser) and by `make build` via `git describe`. The "dev" fallback makes an un-injected build obviously local rather than masquerading as a stale release tag.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ExecuteContext added in v0.0.3

func ExecuteContext(ctx context.Context)

ExecuteContext executes the root command with the provided context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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