cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure() *command.Command

func Execute

func Execute() error

func NewDocumentCmd

func NewDocumentCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewDocumentDownloadCmd

func NewDocumentDownloadCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewDocumentStatusCmd

func NewDocumentStatusCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewDocumentUploadCmd

func NewDocumentUploadCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesCmd

func NewGlossariesCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesCreateCmd

func NewGlossariesCreateCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesDeleteCmd

func NewGlossariesDeleteCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesEntriesCmd

func NewGlossariesEntriesCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesInfoCmd

func NewGlossariesInfoCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesLanguagePairsCmd

func NewGlossariesLanguagePairsCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewGlossariesListCmd

func NewGlossariesListCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewLanguagesCmd

func NewLanguagesCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewRootCmd

func NewRootCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewTranslateTextCmd

func NewTranslateTextCmd(stdout io.Writer, stderr io.Writer) *command.Command

func NewUsageCmd

func NewUsageCmd(stdout io.Writer, stderr io.Writer) *command.Command

Types

type DocumentDownloadCmdConfig

type DocumentDownloadCmdConfig struct {
	RootCmdConfig
}

func (*DocumentDownloadCmdConfig) Exec

func (c *DocumentDownloadCmdConfig) Exec(ctx context.Context, args []string) error

func (*DocumentDownloadCmdConfig) RegisterFlags

func (c *DocumentDownloadCmdConfig) RegisterFlags(fs *flag.FlagSet)

type DocumentStatusCmdConfig

type DocumentStatusCmdConfig struct {
	RootCmdConfig
}

func (*DocumentStatusCmdConfig) Exec

func (c *DocumentStatusCmdConfig) Exec(ctx context.Context, args []string) error

func (*DocumentStatusCmdConfig) RegisterFlags

func (c *DocumentStatusCmdConfig) RegisterFlags(fs *flag.FlagSet)

type DocumentUploadCmdConfig

type DocumentUploadCmdConfig struct {
	RootCmdConfig
	// contains filtered or unexported fields
}

func (*DocumentUploadCmdConfig) Exec

func (c *DocumentUploadCmdConfig) Exec(ctx context.Context, args []string) error

func (*DocumentUploadCmdConfig) RegisterFlags

func (c *DocumentUploadCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesCmdConfig

type GlossariesCmdConfig struct {
	RootCmdConfig
}

func (*GlossariesCmdConfig) Exec

func (*GlossariesCmdConfig) RegisterFlags

func (c *GlossariesCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesCreateCmdConfig

type GlossariesCreateCmdConfig struct {
	RootCmdConfig
	// contains filtered or unexported fields
}

func (*GlossariesCreateCmdConfig) Exec

func (c *GlossariesCreateCmdConfig) Exec(ctx context.Context, args []string) error

func (*GlossariesCreateCmdConfig) RegisterFlags

func (c *GlossariesCreateCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesDeleteCmdConfig

type GlossariesDeleteCmdConfig struct {
	RootCmdConfig
}

func (*GlossariesDeleteCmdConfig) Exec

func (c *GlossariesDeleteCmdConfig) Exec(ctx context.Context, args []string) error

func (*GlossariesDeleteCmdConfig) RegisterFlags

func (c *GlossariesDeleteCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesEntriesCmdConfig

type GlossariesEntriesCmdConfig struct {
	RootCmdConfig
	// contains filtered or unexported fields
}

func (*GlossariesEntriesCmdConfig) Exec

func (c *GlossariesEntriesCmdConfig) Exec(ctx context.Context, args []string) error

func (*GlossariesEntriesCmdConfig) RegisterFlags

func (c *GlossariesEntriesCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesInfoCmdConfig

type GlossariesInfoCmdConfig struct {
	RootCmdConfig
}

func (*GlossariesInfoCmdConfig) Exec

func (c *GlossariesInfoCmdConfig) Exec(ctx context.Context, args []string) error

func (*GlossariesInfoCmdConfig) RegisterFlags

func (c *GlossariesInfoCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesLanguagePairsCmdConfig

type GlossariesLanguagePairsCmdConfig struct {
	RootCmdConfig
}

func (*GlossariesLanguagePairsCmdConfig) Exec

func (*GlossariesLanguagePairsCmdConfig) RegisterFlags

func (c *GlossariesLanguagePairsCmdConfig) RegisterFlags(fs *flag.FlagSet)

type GlossariesListCmdConfig

type GlossariesListCmdConfig struct {
	RootCmdConfig
}

func (*GlossariesListCmdConfig) Exec

func (c *GlossariesListCmdConfig) Exec(ctx context.Context, args []string) error

func (*GlossariesListCmdConfig) RegisterFlags

func (c *GlossariesListCmdConfig) RegisterFlags(fs *flag.FlagSet)

type LanguagesCmdConfig

type LanguagesCmdConfig struct {
	RootCmdConfig
	// contains filtered or unexported fields
}

func (*LanguagesCmdConfig) Exec

func (c *LanguagesCmdConfig) Exec(ctx context.Context, args []string) error

func (*LanguagesCmdConfig) RegisterFlags

func (c *LanguagesCmdConfig) RegisterFlags(fs *flag.FlagSet)

type RootCmdConfig

type RootCmdConfig struct {
	// contains filtered or unexported fields
}

func (*RootCmdConfig) Exec

func (c *RootCmdConfig) Exec(ctx context.Context, args []string) error

func (*RootCmdConfig) RegisterFlags

func (c *RootCmdConfig) RegisterFlags(fs *flag.FlagSet)

type TranslateTextCmdConfig

type TranslateTextCmdConfig struct {
	RootCmdConfig
	// contains filtered or unexported fields
}

func (*TranslateTextCmdConfig) Exec

func (c *TranslateTextCmdConfig) Exec(ctx context.Context, args []string) error

func (*TranslateTextCmdConfig) RegisterFlags

func (c *TranslateTextCmdConfig) RegisterFlags(fs *flag.FlagSet)

type UsageCmdConfig

type UsageCmdConfig struct {
	RootCmdConfig
}

func (*UsageCmdConfig) Exec

func (c *UsageCmdConfig) Exec(ctx context.Context, args []string) error

func (*UsageCmdConfig) RegisterFlags

func (c *UsageCmdConfig) RegisterFlags(fs *flag.FlagSet)

type Verbosity

type Verbosity int

func (*Verbosity) Set

func (v *Verbosity) Set(s string) error

func (*Verbosity) String

func (v *Verbosity) String() string

Jump to

Keyboard shortcuts

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