text

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package text - User facing strings.

Index

Constants

This section is empty.

Variables

View Source
var ErrorAmbiguousArgument = "Ambiguous option '%s', matches %v!"

ErrorAmbiguousArgument holds the text for ambiguous argument error. It has a string placeholder '%s' for the passed option and a []string list of matches.

View Source
var ErrorArgumentIsNotKeyValue = "Argument error for option '%s': Should be of type 'key=value'!"

ErrorArgumentIsNotKeyValue holds the text for Map type options where the argument is not of key=value type. It has a string placeholder '%s' for the name of the option missing the argument.

View Source
var ErrorArgumentWithDash = "Missing argument for option '%s'!\n" +
	"If passing arguments that start with '-' use --option=-argument"

ErrorArgumentWithDash holds the text for missing argument error in cases where the next argument looks like an option (starts with '-'). It has a string placeholder '%s' for the name of the option missing the argument.

View Source
var ErrorConvertArgumentToFloat64 = "Argument error: Can't convert string to float64: '%s'"
View Source
var ErrorConvertArgumentToInt = "Argument error: Can't convert string to int: '%s'"
View Source
var ErrorConvertToFloat64 = "Argument error for option '%s': Can't convert string to float64: '%s'"

ErrorConvertToFloat64 holds the text for Float64 Coversion argument error. It has two string placeholders ('%s'). The first one for the name of the option with the wrong argument and the second one for the argument that could not be converted.

View Source
var ErrorConvertToInt = "Argument error for option '%s': Can't convert string to int: '%s'"

ErrorConvertToInt holds the text for Int Coversion argument error. It has two string placeholders ('%s'). The first one for the name of the option with the wrong argument and the second one for the argument that could not be converted.

View Source
var ErrorMissingArgument = "Missing argument for option '%s'!"

ErrorMissingArgument holds the text for missing argument error. It has a string placeholder '%s' for the name of the option missing the argument.

View Source
var ErrorMissingRequiredArgument = "ERROR: Missing required argument"
View Source
var ErrorMissingRequiredNamedArgument = "ERROR: Missing %s"
View Source
var ErrorMissingRequiredOption = "Missing required parameter '%s'"

ErrorMissingRequiredOption holds the text for missing required option error. It has a string placeholder '%s' for the name of the missing option.

View Source
var HelpArgumentsHeader = "ARGUMENTS"

HelpArgumentsHeader holds the header text for the argument list

View Source
var HelpCommandsHeader = "COMMANDS"

HelpCommandsHeader holds the header text for the command list

View Source
var HelpNameHeader = "NAME"

HelpNameHeader holds the header text for the command name

View Source
var HelpOptionsHeader = "OPTIONS"

HelpOptionsHeader holds the header text for the option list

View Source
var HelpRequiredOptionsHeader = "REQUIRED PARAMETERS"

HelpRequiredOptionsHeader holds the header text for the required parameters

View Source
var HelpSynopsisHeader = "SYNOPSIS"

HelpSynopsisHeader holds the header text for the synopsis

View Source
var MessageOnInterrupt = "Interrupt signal received"

MessageOnInterrupt holds the text for the message to be printed when an interrupt is received.

View Source
var MessageOnUnknown = "Unknown option '%s'"
View Source
var WarningOnUnknown = "WARNING: Unknown option '%s'"

WarningOnUnknown holds the text for the unknown option message. It has a string placeholder '%s' for the name of the option missing the argument. This one includes the WARNING prefix because it is printed directly to the Writer output.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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