app

package
v0.0.0-...-d67b91f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddLogin = &cobra.Command{
	Use:   "addlogin",
	Short: "Add login",
	Long: `
This command add logit for site
Usage: addlogin -p \"user_password\" 
Flags:
  -h, --help              help for addlogin
  -l, --login string      Site login
  -p, --password string   User password value.
  -s, --secret string     Site password|secret
  -t, --title string      Login title
  -u, --uri string        Site endloint  
  --meta 				  Add meta data for entiry
  example: --meta'[{"name":"some_meta","value":"some_meta_value"},{"name":"some_meta2","value":"some_meta_value2"}]'
  `,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().AddLogin(userPassword, &loginForAdditing)
	},
}
View Source
var DelLogin = &cobra.Command{
	Use:   "dellogin",
	Short: "Delete user login by id",
	Long: `
This command remove login
Usage: delcard -i \"login_id\" 
Flags:
  -i, --id string Card id
  -p, --password string   User password value.`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().DelLogin(userPassword, delLoginID)
	},
}
View Source
var GetLogin = &cobra.Command{
	Use:   "getlogin",
	Short: "Show user login by id",
	Long: `
This command getlogin
Usage: getlogin -i \"login_id\" 
Flags:
  -i, --id string Login id
  -p, --password string   User password value.`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().ShowLogin(userPassword, getLoginID)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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