Documentation
¶
Overview ¶
Package commonflags provides shared unprefixed flags for input plugins. These flags are common across multiple input plugins and use no prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Count is the number of colors to extract. Count int // AspectRatio is the image aspect ratio. AspectRatio string // Cache flags CacheEnabled bool CacheDir string CacheFilename string CacheOverwrite bool // Region extraction flags ExtractAmbience bool Regions int SamplePercent int SampleMethod string // Seed flags SeedMode string SeedValue int64 )
Shared common flag variables.
Functions ¶
func GetDefaultCacheDir ¶
func GetDefaultCacheDir() string
GetDefaultCacheDir returns the default cache directory.
func RegisterFlags ¶
RegisterFlags registers the shared common flags on the given command. This should be called by plugins that need these flags. It checks if flags already exist to avoid duplicate registration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.