# Functions
ArgsIsHelpJSON determines whether the supplied command arguments are exactly `help --format=json` or `help --format json`.
Content determines if the given flag value is a file path, and if so read the contents from disk, otherwise presume the given value is the content.
ContextHasHelpFlag asserts whether a given kingpin.ParseContext contains a `help` flag.
CursorFlag returns a cursor flag definition.
DisplayServiceID acquires the Service ID (if provided) and displays both it and its source location.
GetActiveVersion returns the active service version.
GetSpecifiedVersion returns the specified service version.
IntToBool converts a binary 0|1 to a boolean.
IsCompletion determines whether the supplied command arguments are for shell completion (i.e.
IsCompletionScript determines whether the supplied command arguments are for shell completion output that is then eval()'ed by the user's shell.
IsGlobalFlagsOnly indicates if the user called the binary with any permutation order of the globally defined flags.
IsHelpFlagOnly indicates if the user called `fastly --help [...]`.
IsHelpOnly indicates if the user called `fastly help [...]`.
IsVerboseAndQuiet indicates if the user called `fastly --verbose --quiet`.
LimitFlag returns a limit flag definition.
Select chooses the command matching name, if it exists.
ServiceDetails returns the Service ID and Service Version.
ServiceID returns the Service ID and the source of that information.
StoreIDFlag returns a store-id flag definition.
# Variables
FlagCustomerIDDesc is the flag description.
FlagCustomerIDName is the flag name.
FlagJSONDesc is the flag description.
FlagJSONName is the flag name.
FlagServiceIDDesc is the flag description.
FlagServiceIDName is the flag name.
FlagServiceName is the flag name.
FlagServiceNameDesc is the flag description.
FlagVersionDesc is the flag description.
FlagVersionName is the flag name.
PaginationDirection is a list of directions the page results can be displayed.
# Structs
AutoCloneFlagOpts enables easy configuration of the --autoclone flag defined via the RegisterAutoCloneFlag constructor.
Base is stuff that should be included in every concrete command.
BoolFlagOpts enables easy configuration of a flag.
Globals are flags and other stuff that's useful to every command.
IntFlagOpts enables easy configuration of a flag.
JSONOutput is a helper for adding a `--json` flag and encoding values to JSON.
Optional models an optional type that consumers can use to assert whether the inner value has been set and is therefore valid for use.
OptionalAutoClone defines a method set for abstracting the logic required to identify if a given service version needs to be cloned.
OptionalBool models an optional boolean flag value.
OptionalCustomerID represents a Fastly customer ID.
OptionalFloat64 models an optional int flag value.
OptionalInt models an optional int flag value.
OptionalServiceNameID represents a mapping between a Fastly service name and its ID.
OptionalServiceVersion represents a Fastly service version.
OptionalString models an optional string flag value.
OptionalStringSlice models an optional string slice flag value.
ServiceDetailsOpts provides data and behaviours required by the ServiceDetails function.
StringFlagOpts enables easy configuration of a flag.
# Interfaces
Command is an interface that abstracts over all of the concrete command structs.
Registerer abstracts over a kingpin.App and kingpin.CmdClause.