Documentation
¶
Index ¶
- Variables
- type ConfigCommandAPI
- type Option
- type Options
- func (o *Options) CommandArgs() []string
- func (o *Options) Commands() []api.Command
- func (o *Options) Configure(opts ...Option)
- func (o *Options) Errors() error
- func (o *Options) LocaleTag() string
- func (o *Options) Prefix(matchedPrefix string) string
- func (o *Options) PrefixMatcher() *prefix.Matcher
- func (o *Options) Profile() *profile.Profile
- func (o *Options) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilOptions = errors.New("attempted to configure a nil option set")
)
Functions ¶
This section is empty.
Types ¶
type ConfigCommandAPI ¶
type ConfigCommandAPI struct {
*Options
}
ConfigCommandAPI provides an indirect API for user command interactions with a Table - without causing cyclic imports :-(
func (*ConfigCommandAPI) SetLocaleTag ¶
func (cfg *ConfigCommandAPI) SetLocaleTag(localeTag string)
func (*ConfigCommandAPI) SetPrefix ¶
func (cfg *ConfigCommandAPI) SetPrefix(prefix string)
func (*ConfigCommandAPI) SetPrefixPattern ¶
func (cfg *ConfigCommandAPI) SetPrefixPattern(pattern string)
func (*ConfigCommandAPI) SetProfile ¶
func (cfg *ConfigCommandAPI) SetProfile(profile *profile.Profile)
type Option ¶
func WithCommandArgs ¶
any number of inline commands, e.g. sort insert wip delete bad ...
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options provides configuration parameters for tables and documents
By default, the options for a document or table are nil.
- All options MUST be set via the appropriate With{Option} function.
- All options are provided as pointer methods which return default values for nil pointers!
func (*Options) CommandArgs ¶
func (*Options) PrefixMatcher ¶
Click to show internal directories.
Click to hide internal directories.