cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cmd implements the command-line interface for the k8s-controller application. It uses the Cobra library to provide a structured CLI with subcommands and flags.

Package cmd contains the CLI commands for the k8s-controller application. This file implements the 'serve' command which starts the HTTP server.

Package cmd contains the CLI commands for the k8s-controller application. This file implements the 'version' command which displays the current version.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version holds the current version of the application. This value can be overridden at build time using ldflags: go build -ldflags "-X github.com/Searge/k8s-controller/cmd.Version=v1.0.0"

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. If the command execution fails, the application will exit with status code 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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