download

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDownloadConfig added in v0.1.0

func LoadDownloadConfig(cfg *DownloadConfig, configFile, envPrefix string) error

func NewCommand

func NewCommand(cfg *globalCfg.GlobalConfig, defaults *DownloadConfig) *cobra.Command

Types

type DownloadConfig added in v0.1.0

type DownloadConfig struct {
	Out    *string `mapstructure:"out"`
	Format *string `mapstructure:"format"`
	Async  *bool   `mapstructure:"async"`

	OriginalFilenames          *bool     `mapstructure:"original-filenames"`
	BundleStructure            *string   `mapstructure:"bundle-structure"`
	DirectoryPrefix            *string   `mapstructure:"directory-prefix"`
	AllPlatforms               *bool     `mapstructure:"all-platforms"`
	FilterLangs                *[]string `mapstructure:"filter-langs"`
	FilterData                 *[]string `mapstructure:"filter-data"`
	FilterFilenames            *[]string `mapstructure:"filter-filenames"`
	AddNewlineEOF              *bool     `mapstructure:"add-newline-eof"`
	CustomTranslationStatusIDs *[]string `mapstructure:"custom-translation-status-ids"`
	IncludeTags                *[]string `mapstructure:"include-tags"`
	ExcludeTags                *[]string `mapstructure:"exclude-tags"`
	ExportSort                 *string   `mapstructure:"export-sort"`
	ExportEmptyAs              *string   `mapstructure:"export-empty-as"`
	ExportNullAs               *string   `mapstructure:"export-null-as"`
	IncludeComments            *bool     `mapstructure:"include-comments"`
	IncludeDescription         *bool     `mapstructure:"include-description"`
	IncludePIDs                *[]string `mapstructure:"include-pids"`
	Triggers                   *[]string `mapstructure:"triggers"`
	FilterRepositories         *[]string `mapstructure:"filter-repositories"`
	ReplaceBreaks              *bool     `mapstructure:"replace-breaks"`
	DisableReferences          *bool     `mapstructure:"disable-references"`
	PluralFormat               *string   `mapstructure:"plural-format"`
	PlaceholderFormat          *string   `mapstructure:"placeholder-format"`
	WebhookURL                 *string   `mapstructure:"webhook-url"`
	LanguageMappingJSON        *string   `mapstructure:"language-mapping"`
	ICUNumeric                 *bool     `mapstructure:"icu-numeric"`
	EscapePercent              *bool     `mapstructure:"escape-percent"`
	Indentation                *string   `mapstructure:"indentation"`
	YAMLIncludeRoot            *bool     `mapstructure:"yaml-include-root"`
	JSONUnescapedSlashes       *bool     `mapstructure:"json-unescaped-slashes"`
	JavaPropertiesEncoding     *string   `mapstructure:"java-properties-encoding"`
	JavaPropertiesSeparator    *string   `mapstructure:"java-properties-separator"`
	BundleDescription          *string   `mapstructure:"bundle-description"`
	FilterTaskID               *int64    `mapstructure:"filter-task-id"`
	Compact                    *bool     `mapstructure:"compact"`
}

type DownloadParamSpec added in v0.1.0

type Flags

type Flags struct {
	Out    string
	Format string
	Async  bool

	OriginalFilenames          bool
	BundleStructure            string
	DirectoryPrefix            string
	AllPlatforms               bool
	FilterLangs                []string
	FilterData                 []string
	FilterFilenames            []string
	AddNewlineEOF              bool
	CustomTranslationStatusIDs []string
	IncludeTags                []string
	ExcludeTags                []string
	ExportSort                 string
	ExportEmptyAs              string
	ExportNullAs               string
	IncludeComments            bool
	IncludeDescription         bool
	IncludePIDs                []string
	Triggers                   []string
	FilterRepositories         []string
	ReplaceBreaks              bool
	DisableReferences          bool
	PluralFormat               string
	PlaceholderFormat          string
	WebhookURL                 string
	LanguageMappingJSON        string
	ICUNumeric                 bool
	EscapePercent              bool
	Indentation                string
	YAMLIncludeRoot            bool
	JSONUnescapedSlashes       bool
	JavaPropertiesEncoding     string
	JavaPropertiesSeparator    string
	BundleDescription          string
	FilterTaskID               int64
	Compact                    bool
}

Jump to

Keyboard shortcuts

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