cli

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SensitiveInformationOverlay = "********"

SensitiveInformationOverlay is the string used to hide sensitive data

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

func CheckMinimumVersion

func CheckMinimumVersion(ctx context.Context, client *api.Client, minimumVersion string) error

CheckMinimumVersion checks if the Coolify API version meets the minimum requirement

func ExactArgs

func ExactArgs(n int, usage string) cobra.PositionalArgs

ExactArgs returns a validator that ensures exactly n arguments are provided with a helpful error message

func GetAPIClient

func GetAPIClient(cmd *cobra.Command) (*api.Client, error)

GetAPIClient creates an API client from command flags or config

func MinArgs

func MinArgs(n int, usage string) cobra.PositionalArgs

MinArgs returns a validator that ensures at least n arguments are provided with a helpful error message

func ParseInt

func ParseInt(s string) (int, error)

ParseInt parses a string to int with better error message

func SplitOwnerRepo

func SplitOwnerRepo(s string) []string

SplitOwnerRepo splits owner/repo string into parts

func StringPtr

func StringPtr(s string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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