command

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(args []string) error

Types

type Config

type Config struct {
	Master      string `pw:"master" usage:"Your master password" dft:"$ONEPW_MASTER" prompt:"Type the master password"`
	EnableDebug bool   `cli:"debug" usage:"Enable debug mode" dft:"false"`
}

Config implementes Configure interface, represents onepw config

func (Config) Debug

func (cfg Config) Debug() bool

Debug returns debug mode

func (Config) Filename

func (cfg Config) Filename() string

Filename returns password data filename

func (Config) MasterPassword

func (cfg Config) MasterPassword() string

MasterPassword returns master password

type Configure

type Configure interface {
	Filename() string
	MasterPassword() string
	Debug() bool
}

Configure ...

Jump to

Keyboard shortcuts

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