Documentation
¶
Overview ¶
Package flag provides viper flags.
Index ¶
- Constants
- func Core() bool
- func Force() bool
- func GetPotFileFlag() int
- func GetPotFileLocation() string
- func GettextUseMultipleVersions() bool
- func GitHubActionEvent() string
- func NoGPG() bool
- func NoSpecialGettextVersions() bool
- func Quiet() int
- func ReportFileLocations() int
- func ReportTypos() int
- func SetGettextUseMultipleVersions(value bool)
- func Verbose() int
Constants ¶
View Source
const ( ReportIssueNone = iota ReportIssueWarn ReportIssueError )
View Source
const ( PotFileFlagNone = iota PotFileFlagLocation PotFileFlagUpdate PotFileFlagDownload )
Variables ¶
This section is empty.
Functions ¶
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 NoSpecialGettextVersions ¶
func NoSpecialGettextVersions() bool
NoSpecialGettextVersions returns option "--no-special-gettext-versions".
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".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.