internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess    = 0
	ExitError      = 1
	ExitAuth       = 2
	ExitNotFound   = 3
	ExitValidation = 4
)

Variables

This section is empty.

Functions

func Err

func Err(msg string)

func MergeJSON added in v0.3.0

func MergeJSON(cmd *cli.Command, body map[string]any) error

func MergeJSONForm added in v0.3.0

func MergeJSONForm(cmd *cli.Command, form map[string]string) error

func RequireFlag added in v0.3.0

func RequireFlag(cmd interface{ String(string) string }, flag, envHint string) (string, error)

Types

type ZohoAPIError

type ZohoAPIError struct {
	ZohoCliError
	StatusCode int
}

func NewAPIError

func NewAPIError(statusCode int, body string) *ZohoAPIError

type ZohoCliError

type ZohoCliError struct {
	Message  string
	ExitCode int
}

func NewAuthError

func NewAuthError(msg string) *ZohoCliError

func NewError

func NewError(msg string) *ZohoCliError

func NewNotFoundError

func NewNotFoundError(msg string) *ZohoCliError

func NewValidationError

func NewValidationError(msg string) *ZohoCliError

func (*ZohoCliError) Error

func (e *ZohoCliError) Error() string

Jump to

Keyboard shortcuts

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