cmd

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cmd contains the CLI commands for the k8s-controller application. This file implements the 'connection' command which verifies Kubernetes API connectivity.

Package cmd contains shared flags and utilities for CLI commands. This file defines common Kubernetes-related flags used across multiple commands.

Package cmd contains the CLI commands for the k8s-controller application. This file implements the 'list' command which provides subcommands for listing Kubernetes resources.

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