cmd

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Get     GetCmd     `cmd:"" help:"get secret"`
	Set     SetCmd     `cmd:"" help:"set secret"`
	Del     DelCmd     `cmd:"" help:"delete secret"`
	Version VersionCmd `cmd:"" help:"version info"`
}

type DelCmd

type DelCmd struct {
	Key string `arg:"" name:"key" required:"" help:"secret name"`
}

func (*DelCmd) Run

func (cmd *DelCmd) Run(c *cc.CommonCtx) error

type GetCmd

type GetCmd struct {
	Key string `arg:"" name:"key" required:"" help:"secret name"`
}

func (*GetCmd) Run

func (cmd *GetCmd) Run(c *cc.CommonCtx) error

type SetCmd

type SetCmd struct {
	Key    string `arg:"" name:"key" required:"" help:"secret name"`
	Prompt bool   `xor:"group" required:"" name:"prompt" help:"secret value read from secure prompt"`
	Stdin  bool   `xor:"group" required:"" name:"stdin" help:"secret value read from stdin"`
	File   string `xor:"group" required:"" name:"file" type:"existingfile" help:"secret value read from file"`
}

func (*SetCmd) Run

func (cmd *SetCmd) Run(c *cc.CommonCtx) error

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Run

func (cmd *VersionCmd) Run(c *cc.CommonCtx) error

Jump to

Keyboard shortcuts

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