cmdutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cmdutil provides common utilities and helper functions for command-line operations. It includes validation functions, error handling utilities, and other shared functionality used across CLI commands in the eph application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(message string, err error)

HandleError prints an error message and exits with code 1.

func HandleErrorf

func HandleErrorf(format string, args ...interface{})

HandleErrorf prints a formatted error message and exits with code 1.

func ValidateRequired

func ValidateRequired(value, name string, cmd *cobra.Command)

ValidateRequired checks if a required value is provided and exits if not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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