helpers

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstNonEmpty added in v0.13.3

func FirstNonEmpty(values ...string) string

FirstNonEmpty returns the first non-empty (after trimming whitespace) string from the provided values, or empty string if all are empty.

func GetContextFromArgs

func GetContextFromArgs(cmd *cobra.Command, args []string) ([]string, string, error)

for cobra commands that allow arbitrary args to facilitate passing flags to other commands strip out sitectl's context flag from the args if it was passed

func OpenURL

func OpenURL(url string) error

open a URL from the terminal

Types

This section is empty.

Jump to

Keyboard shortcuts

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