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
- type CommandOption
- type Config
- type ConfigEnv
- type ConfigEnvs
- type ConfigMode
- type ConfigModes
- type ConfigSites
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, c cache.Cache, op *onepassword.OnePassword, 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 { Dirs []string `json:"dirs" yaml:"dirs"` Modes ConfigModes `json:"modes" yaml:"modes"` Sites ConfigSites `json:"sites" yaml:"sites"` Secrets map[string]onepassword.Secret `json:"secrets" yaml:"secrets"` BrowserStack *onepassword.Secret `json:"browserStack" yaml:"browserStack"` }
type ConfigEnv ¶
type ConfigEnv struct { Auth *onepassword.Secret `json:"auth" yaml:"auth"` Domain string `json:"domain" yaml:"domain"` }
type ConfigEnvs ¶
func (ConfigEnvs) Keys ¶
func (c ConfigEnvs) Keys() []string
type ConfigMode ¶
type ConfigModes ¶
type ConfigModes map[string]ConfigMode
func (ConfigModes) Keys ¶
func (c ConfigModes) Keys() []string
type ConfigSites ¶
type ConfigSites map[string]ConfigEnvs
func (ConfigSites) Keys ¶
func (c ConfigSites) Keys() []string
Click to show internal directories.
Click to hide internal directories.