Documentation ¶
Index ¶
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- func (c *Command) Validate(ctx context.Context, r *readline.Readline) error
- type CommandOption
- type Config
- type StackNameProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, op *onepassword.OnePassword, cache cache.Cache, opts ...CommandOption) (*Command, error)
func (*Command) Description ¶
type CommandOption ¶
type CommandOption func(*Command)
func CommandWithName ¶
func CommandWithName(v string) CommandOption
func WithConfigKey ¶
func WithConfigKey(v string) CommandOption
type Config ¶
type Config struct { Path string `json:"path" yaml:"path"` CachePath string `json:"cachePath" yaml:"cachePath"` }
func (Config) StackNames ¶
func (Config) StacksPath ¶
type StackNameProvider ¶
Click to show internal directories.
Click to hide internal directories.