flag

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package flag provides viper flags.

Index

Constants

View Source
const (
	ReportIssueNone = iota
	ReportIssueWarn
	ReportIssueError
)
View Source
const (
	PotFileFlagNone = iota
	PotFileFlagLocation
	PotFileFlagUpdate
	PotFileFlagDownload
)

Variables

This section is empty.

Functions

func Core

func Core() bool

Core returns option "--core".

func Force

func Force() bool

Force returns option "--force".

func GetPotFileFlag added in v0.6.0

func GetPotFileFlag() int

GetPotFileFlag returns option "--pot-file".

func GetPotFileLocation added in v0.6.0

func GetPotFileLocation() string

GetPotFileLocation returns option "--pot-file".

func GettextUseMultipleVersions added in v0.4.5

func GettextUseMultipleVersions() bool

GettextUseMultipleVersions returns option "gettext-use-multiple-versions".

func GitHubActionEvent

func GitHubActionEvent() string

GitHubActionEvent returns option "--github-action-event".

func NoGPG

func NoGPG() bool

NoGPG returns option "--no-gpg".

func NoSpecialGettextVersions

func NoSpecialGettextVersions() bool

NoSpecialGettextVersions returns option "--no-special-gettext-versions".

func Quiet

func Quiet() int

Quiet returns option "--quiet".

func ReportFileLocations added in v0.6.3

func ReportFileLocations() int

ReportFileLocations returns way to display typos (none, warn, error).

func ReportTypos added in v0.6.3

func ReportTypos() int

ReportTypos returns way to display typos (none, warn, error).

func SetGettextUseMultipleVersions added in v0.4.5

func SetGettextUseMultipleVersions(value bool)

SetGettextUseMultipleVersions sets option "gettext-use-multiple-versions".

func Verbose

func Verbose() int

Verbose returns option "--verbose".

Types

This section is empty.

Jump to

Keyboard shortcuts

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