options

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASCIIOutput

type ASCIIOutput bool

func (ASCIIOutput) Flag

func (ASCIIOutput) Flag() string

func (*ASCIIOutput) IsBoolFlag

func (option *ASCIIOutput) IsBoolFlag() bool

func (*ASCIIOutput) Set

func (option *ASCIIOutput) Set(value string) error

func (ASCIIOutput) String

func (ASCIIOutput) String() string

func (*ASCIIOutput) UnmarshalText

func (option *ASCIIOutput) UnmarshalText(text []byte) error

type CompactOutput

type CompactOutput bool

func (CompactOutput) Flag

func (CompactOutput) Flag() string

func (*CompactOutput) IsBoolFlag

func (option *CompactOutput) IsBoolFlag() bool

func (*CompactOutput) Set

func (option *CompactOutput) Set(value string) error

func (CompactOutput) String

func (CompactOutput) String() string

func (*CompactOutput) UnmarshalText

func (option *CompactOutput) UnmarshalText(text []byte) error

type ForceColor

type ForceColor bool

func (ForceColor) Flag

func (ForceColor) Flag() string

func (*ForceColor) IsBoolFlag

func (option *ForceColor) IsBoolFlag() bool

func (*ForceColor) Set

func (option *ForceColor) Set(value string) error

func (ForceColor) String

func (ForceColor) String() string

func (*ForceColor) UnmarshalText

func (option *ForceColor) UnmarshalText(text []byte) error

type HideInputPane

type HideInputPane bool

func (HideInputPane) Flag

func (HideInputPane) Flag() string

func (*HideInputPane) IsBoolFlag

func (option *HideInputPane) IsBoolFlag() bool

func (*HideInputPane) Set

func (option *HideInputPane) Set(value string) error

func (HideInputPane) String

func (HideInputPane) String() string

func (*HideInputPane) UnmarshalText

func (option *HideInputPane) UnmarshalText(text []byte) error

type HistoryFile

type HistoryFile string

func (HistoryFile) Flag

func (HistoryFile) Flag() string

func (*HistoryFile) Set

func (option *HistoryFile) Set(value string) error

func (HistoryFile) String

func (HistoryFile) String() string

func (*HistoryFile) UnmarshalText

func (option *HistoryFile) UnmarshalText(text []byte) error

type JQCommand

type JQCommand string

func (JQCommand) Flag

func (JQCommand) Flag() string

func (*JQCommand) Set

func (option *JQCommand) Set(value string) error

func (JQCommand) String

func (JQCommand) String() string

func (*JQCommand) UnmarshalText

func (option *JQCommand) UnmarshalText(text []byte) error

type JoinOutput

type JoinOutput bool

func (JoinOutput) Flag

func (JoinOutput) Flag() string

func (*JoinOutput) IsBoolFlag

func (option *JoinOutput) IsBoolFlag() bool

func (*JoinOutput) Set

func (option *JoinOutput) Set(value string) error

func (JoinOutput) String

func (JoinOutput) String() string

func (*JoinOutput) UnmarshalText

func (option *JoinOutput) UnmarshalText(text []byte) error

type LibraryPaths

type LibraryPaths []string

func (LibraryPaths) Flag

func (LibraryPaths) Flag() string

func (*LibraryPaths) Set

func (option *LibraryPaths) Set(value string) error

func (LibraryPaths) String

func (LibraryPaths) String() string

func (*LibraryPaths) UnmarshalText

func (option *LibraryPaths) UnmarshalText(text []byte) error

type Monochrome

type Monochrome bool

func (Monochrome) Flag

func (Monochrome) Flag() string

func (*Monochrome) IsBoolFlag

func (option *Monochrome) IsBoolFlag() bool

func (*Monochrome) Set

func (option *Monochrome) Set(value string) error

func (Monochrome) String

func (Monochrome) String() string

func (*Monochrome) UnmarshalText

func (option *Monochrome) UnmarshalText(text []byte) error

type NullInput

type NullInput bool

func (NullInput) Flag

func (NullInput) Flag() string

func (*NullInput) IsBoolFlag

func (option *NullInput) IsBoolFlag() bool

func (*NullInput) Set

func (option *NullInput) Set(value string) error

func (NullInput) String

func (NullInput) String() string

func (*NullInput) UnmarshalText

func (option *NullInput) UnmarshalText(text []byte) error

type Option

type Option interface {
	flag.Value
	Flag() string
}

type Options

type Options struct {
	CompactOutput CompactOutput
	NullInput     NullInput
	Slurp         Slurp
	RawOutput     RawOutput
	JoinOutput    JoinOutput
	ASCIIOutput   ASCIIOutput
	RawInput      RawInput
	Monochrome    Monochrome
	ForceColor    ForceColor
	SortKeys      SortKeys
	LibraryPaths  LibraryPaths
	HideInputPane HideInputPane
	JQCommand     JQCommand
	HistoryFile   HistoryFile
}

func (*Options) Each

func (o *Options) Each(f func(option Option))

func (Options) ToSlice

func (o Options) ToSlice() []string

func (*Options) Toggle

func (o *Options) Toggle(option Option)

type RawInput

type RawInput bool

func (RawInput) Flag

func (RawInput) Flag() string

func (*RawInput) IsBoolFlag

func (option *RawInput) IsBoolFlag() bool

func (*RawInput) Set

func (option *RawInput) Set(value string) error

func (RawInput) String

func (RawInput) String() string

func (*RawInput) UnmarshalText

func (option *RawInput) UnmarshalText(text []byte) error

type RawOutput

type RawOutput bool

func (RawOutput) Flag

func (RawOutput) Flag() string

func (*RawOutput) IsBoolFlag

func (option *RawOutput) IsBoolFlag() bool

func (*RawOutput) Set

func (option *RawOutput) Set(value string) error

func (RawOutput) String

func (RawOutput) String() string

func (*RawOutput) UnmarshalText

func (option *RawOutput) UnmarshalText(text []byte) error

type Slurp

type Slurp bool

func (Slurp) Flag

func (Slurp) Flag() string

func (*Slurp) IsBoolFlag

func (option *Slurp) IsBoolFlag() bool

func (*Slurp) Set

func (option *Slurp) Set(value string) error

func (Slurp) String

func (Slurp) String() string

func (*Slurp) UnmarshalText

func (option *Slurp) UnmarshalText(text []byte) error

type SortKeys

type SortKeys bool

func (SortKeys) Flag

func (SortKeys) Flag() string

func (*SortKeys) IsBoolFlag

func (option *SortKeys) IsBoolFlag() bool

func (*SortKeys) Set

func (option *SortKeys) Set(value string) error

func (SortKeys) String

func (SortKeys) String() string

func (*SortKeys) UnmarshalText

func (option *SortKeys) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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