Documentation ¶
Index ¶
- Constants
- func LeadsWith(name, text string) string
- type FooBarError
- type FooBarErrorBehaviourQuery
- type FooBarTemplData
- type InvalidInterlaceError
- type InvalidInterlaceErrorBehaviourQuery
- type InvalidSamplingFactorError
- type InvalidSamplingFactorErrorBehaviourQuery
- type OutputPathDoesNotExistBehaviourQuery
- type OutputPathDoesNotExistError
- type RootCmdConfigFileUsageTemplData
- type RootCmdFilesGlobParamUsageTemplData
- type RootCmdFilesRegExParamUsageTemplData
- type RootCmdFolderGlobParamUsageTemplData
- type RootCmdFolderRexExParamUsageTemplData
- type RootCmdLangUsageTemplData
- type RootCmdLongDescTemplData
- type RootCmdShortDescTemplData
- type ShrinkCmdCuddleParamUsageTemplData
- type ShrinkCmdGaussianBlurParamUsageTemplData
- type ShrinkCmdInterlaceInvalidTemplData
- type ShrinkCmdInterlaceParamUsageTemplData
- type ShrinkCmdOutputPathDoesNotExistTemplData
- type ShrinkCmdOutputPathParamUsageTemplData
- type ShrinkCmdQualityParamUsageTemplData
- type ShrinkCmdSamplingFactorInvalidTemplData
- type ShrinkCmdSamplingFactorParamUsageTemplData
- type ShrinkCmdSchemeParamUsageTemplData
- type ShrinkCmdShortDefinitionTemplData
- type ShrinkCmdStripParamUsageTemplData
- type ShrinkCmdTrashPathParamUsageTemplData
- type ShrinkLongDefinitionTemplData
- type UsingConfigFileTemplData
Constants ¶
const PixaSourceID = "github.com/snivilised/pixa"
TODO: Should be updated to use url of the implementing project, so should not be left as arcadia.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FooBarError ¶
type FooBarError struct {
xi18n.LocalisableError
}
func NewFooBarError ¶
func NewFooBarError(path string, reason error) FooBarError
NewFooBarError creates a FooBarError
func (FooBarError) FooBar ¶
func (e FooBarError) FooBar() bool
FooBar enables the client to check if error is FooBarError via FooBarErrorBehaviourQuery
type FooBarErrorBehaviourQuery ¶
type FooBarErrorBehaviourQuery interface {
FooBar() bool
}
FooBarErrorBehaviourQuery used to query if an error is: "Failed to read directory contents from the path specified"
type FooBarTemplData ¶
FooBarTemplData - TODO: this is a none existent error that should be replaced by the client. Its just defined here to illustrate the pattern that should be used to implement i18n with extendio. Also note, that this message has been removed from the translation files, so it is not useable at run time.
func (FooBarTemplData) Message ¶
func (td FooBarTemplData) Message() *i18n.Message
the ID should use spp/library specific code, so replace arcadia with the name of the library implementing this template project.
type InvalidInterlaceError ¶
type InvalidInterlaceError struct {
xi18n.LocalisableError
}
func NewInterlaceError ¶
func NewInterlaceError(value, acceptable string) InvalidInterlaceError
type InvalidInterlaceErrorBehaviourQuery ¶
type InvalidInterlaceErrorBehaviourQuery interface {
SamplingFactorValidationFailure() bool
}
InvalidInterlaceErrorBehaviourQuery used to query if an error is: "invalid interlace value"
type InvalidSamplingFactorError ¶
type InvalidSamplingFactorError struct {
xi18n.LocalisableError
}
func NewInvalidSamplingFactorError ¶
func NewInvalidSamplingFactorError(value, acceptable string) InvalidSamplingFactorError
type InvalidSamplingFactorErrorBehaviourQuery ¶
type InvalidSamplingFactorErrorBehaviourQuery interface {
SamplingFactorValidationFailure() bool
}
InvalidSamplingFactorErrorBehaviourQuery used to query if an error is: "invalid sampling factor value"
type OutputPathDoesNotExistBehaviourQuery ¶
type OutputPathDoesNotExistBehaviourQuery interface {
OutputPathValidationFailure() bool
}
InvalidInterlaceErrorBehaviourQuery used to query if an error is: "invalid interlace value"
type OutputPathDoesNotExistError ¶
type OutputPathDoesNotExistError struct {
xi18n.LocalisableError
}
func NewOutputPathDoesNotExistError ¶
func NewOutputPathDoesNotExistError(path string) OutputPathDoesNotExistError
type RootCmdConfigFileUsageTemplData ¶
type RootCmdConfigFileUsageTemplData struct {
// contains filtered or unexported fields
}
RootCmdConfigFileUsageTemplData 🧊
func (RootCmdConfigFileUsageTemplData) Message ¶
func (td RootCmdConfigFileUsageTemplData) Message() *i18n.Message
type RootCmdFilesGlobParamUsageTemplData ¶
type RootCmdFilesGlobParamUsageTemplData struct {
// contains filtered or unexported fields
}
RootCmdFilesGlobParamUsageTemplData 🧊
func (RootCmdFilesGlobParamUsageTemplData) Message ¶
func (td RootCmdFilesGlobParamUsageTemplData) Message() *i18n.Message
type RootCmdFilesRegExParamUsageTemplData ¶
type RootCmdFilesRegExParamUsageTemplData struct {
// contains filtered or unexported fields
}
RootCmdFilesRegExParamUsageTemplData 🧊
func (RootCmdFilesRegExParamUsageTemplData) Message ¶
func (td RootCmdFilesRegExParamUsageTemplData) Message() *i18n.Message
type RootCmdFolderGlobParamUsageTemplData ¶
type RootCmdFolderGlobParamUsageTemplData struct {
// contains filtered or unexported fields
}
RootCmdFolderGlobParamUsageTemplData 🧊
func (RootCmdFolderGlobParamUsageTemplData) Message ¶
func (td RootCmdFolderGlobParamUsageTemplData) Message() *i18n.Message
type RootCmdFolderRexExParamUsageTemplData ¶
type RootCmdFolderRexExParamUsageTemplData struct {
// contains filtered or unexported fields
}
RootCmdFolderRexExParamUsageTemplData 🧊
func (RootCmdFolderRexExParamUsageTemplData) Message ¶
func (td RootCmdFolderRexExParamUsageTemplData) Message() *i18n.Message
type RootCmdLangUsageTemplData ¶
type RootCmdLangUsageTemplData struct {
// contains filtered or unexported fields
}
RootCmdLangUsageTemplData 🧊
func (RootCmdLangUsageTemplData) Message ¶
func (td RootCmdLangUsageTemplData) Message() *i18n.Message
type RootCmdLongDescTemplData ¶
type RootCmdLongDescTemplData struct {
// contains filtered or unexported fields
}
RootCmdLongDescTemplData 🧊
func (RootCmdLongDescTemplData) Message ¶
func (td RootCmdLongDescTemplData) Message() *i18n.Message
type RootCmdShortDescTemplData ¶
type RootCmdShortDescTemplData struct {
// contains filtered or unexported fields
}
RootCmdShortDescTemplData 🧊
func (RootCmdShortDescTemplData) Message ¶
func (td RootCmdShortDescTemplData) Message() *i18n.Message
type ShrinkCmdCuddleParamUsageTemplData ¶
type ShrinkCmdCuddleParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdCuddleParamUsageTemplData 🧊
func (ShrinkCmdCuddleParamUsageTemplData) Message ¶
func (td ShrinkCmdCuddleParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdGaussianBlurParamUsageTemplData ¶
type ShrinkCmdGaussianBlurParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdGaussianBlurParamUsageTemplData 🧊
func (ShrinkCmdGaussianBlurParamUsageTemplData) Message ¶
func (td ShrinkCmdGaussianBlurParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdInterlaceInvalidTemplData ¶
type ShrinkCmdInterlaceInvalidTemplData struct { Value string Acceptable string // contains filtered or unexported fields }
ShrinkCmdInterlaceInvalidTemplData ❌
func (ShrinkCmdInterlaceInvalidTemplData) Message ¶
func (td ShrinkCmdInterlaceInvalidTemplData) Message() *i18n.Message
type ShrinkCmdInterlaceParamUsageTemplData ¶
type ShrinkCmdInterlaceParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdInterlaceParamUsageTemplData 🧊
func (ShrinkCmdInterlaceParamUsageTemplData) Message ¶
func (td ShrinkCmdInterlaceParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdOutputPathDoesNotExistTemplData ¶
type ShrinkCmdOutputPathDoesNotExistTemplData struct { Path string // contains filtered or unexported fields }
ShrinkCmdOutputPathDoesNotExistTemplData ❌
func (ShrinkCmdOutputPathDoesNotExistTemplData) Message ¶
func (td ShrinkCmdOutputPathDoesNotExistTemplData) Message() *i18n.Message
type ShrinkCmdOutputPathParamUsageTemplData ¶
type ShrinkCmdOutputPathParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdOutputPathParamUsageTemplData 🧊
func (ShrinkCmdOutputPathParamUsageTemplData) Message ¶
func (td ShrinkCmdOutputPathParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdQualityParamUsageTemplData ¶
type ShrinkCmdQualityParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdQualityParamUsageTemplData 🧊
func (ShrinkCmdQualityParamUsageTemplData) Message ¶
func (td ShrinkCmdQualityParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdSamplingFactorInvalidTemplData ¶
type ShrinkCmdSamplingFactorInvalidTemplData struct { Value string Acceptable string // contains filtered or unexported fields }
ShrinkCmdSamplingFactorInvalidTemplData ❌
func (ShrinkCmdSamplingFactorInvalidTemplData) Message ¶
func (td ShrinkCmdSamplingFactorInvalidTemplData) Message() *i18n.Message
type ShrinkCmdSamplingFactorParamUsageTemplData ¶
type ShrinkCmdSamplingFactorParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdSamplingFactorParamUsageTemplData 🧊
func (ShrinkCmdSamplingFactorParamUsageTemplData) Message ¶
func (td ShrinkCmdSamplingFactorParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdSchemeParamUsageTemplData ¶
type ShrinkCmdSchemeParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdGaussianBlurParamUsageTemplData 🧊
func (ShrinkCmdSchemeParamUsageTemplData) Message ¶
func (td ShrinkCmdSchemeParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdShortDefinitionTemplData ¶
type ShrinkCmdShortDefinitionTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdShortDefinitionTemplData 🧊
func (ShrinkCmdShortDefinitionTemplData) Message ¶
func (td ShrinkCmdShortDefinitionTemplData) Message() *i18n.Message
type ShrinkCmdStripParamUsageTemplData ¶
type ShrinkCmdStripParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdStripParamUsageTemplData 🧊
func (ShrinkCmdStripParamUsageTemplData) Message ¶
func (td ShrinkCmdStripParamUsageTemplData) Message() *i18n.Message
type ShrinkCmdTrashPathParamUsageTemplData ¶
type ShrinkCmdTrashPathParamUsageTemplData struct {
// contains filtered or unexported fields
}
ShrinkCmdTrashPathParamUsageTemplData 🧊
func (ShrinkCmdTrashPathParamUsageTemplData) Message ¶
func (td ShrinkCmdTrashPathParamUsageTemplData) Message() *i18n.Message
type ShrinkLongDefinitionTemplData ¶
type ShrinkLongDefinitionTemplData struct {
// contains filtered or unexported fields
}
ShrinkLongDefinitionTemplData 🧊
func (ShrinkLongDefinitionTemplData) Message ¶
func (td ShrinkLongDefinitionTemplData) Message() *i18n.Message
type UsingConfigFileTemplData ¶
type UsingConfigFileTemplData struct { ConfigFileName string // contains filtered or unexported fields }
func (UsingConfigFileTemplData) Message ¶
func (td UsingConfigFileTemplData) Message() *i18n.Message