command

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Copy

type Copy struct {
	Get
}

Copy is the copy command

func (*Copy) Run

func (c *Copy) Run() error

Run the Copy command

type Del

type Del struct {
	Get
}

Del is the delete command

func (*Del) Run

func (c *Del) Run() error

Run the Delete command

type Gen

type Gen struct {
	Length    int  `short:"l" help:"Length of the secret" default:"16"`
	Digits    int  `short:"d" help:"Number of digits in the secret" default:"2"`
	Symbols   int  `short:"s" help:"Number of symbols in the secret" default:"2"`
	NoUpper   bool `help:"Don't allow upper case letters"`
	NoRepeats bool `help:"Don't allow repeats"`
}

Gen is the generate command

func (*Gen) Run

func (c *Gen) Run() error

Run the Generate command

type Get

type Get struct {
	Name string `arg:"" required:"" help:"Name of the secret"`
	User string `short:"u" env:"USER" help:"Username for the secret"`
}

Get is the get command

func (*Get) Run

func (c *Get) Run() error

Run the Get command

type List

type List struct {
	User string `short:"u" env:"USER" help:"Username for the secret"`
}

List is the list command

func (*List) Run

func (c *List) Run() error

Run the List command

type Set

type Set struct {
	Name   string `arg:"" required:"" help:"Name for the secret"`
	User   string `short:"u" env:"USER" help:"Username associated with this secret"`
	Ask    bool   `short:"a" help:"Enter the secret from the terminal instead of generating one."`
	Update bool   `short:"U" help:"Don't ask to update if secret already exists."`
	Gen    `group:"gen secret options"`
}

Set is the set command

func (*Set) Run

func (c *Set) Run() error

Run the Set command

Jump to

Keyboard shortcuts

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