cmd

package
v0.0.0-...-96202ad Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BITWARDEN_HEADER = "folder,favorite,type,name,notes,fields,login_uri,login_username,login_password,login_totp"
	LASTPASS_HEADER  = "url,username,password,extra,name,grouping,fav"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "bitwarden",
	Short: "A brief description of your application",
	Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func IsValidExportFormat

func IsValidExportFormat(format string) bool

func IsValidImportFormat

func IsValidImportFormat(format string) bool

Types

type CsvRecord

type CsvRecord struct {
	bitwarden.Cipher
	Folder string
}

func (*CsvRecord) FromCsv

func (csv *CsvRecord) FromCsv(header string, record []string) error

func (*CsvRecord) ToCsv

func (csv *CsvRecord) ToCsv(header string) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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