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 AddNote = &cobra.Command{
	Use:   "addnote",
	Short: "Add note",
	Long: `
This command add user note
Usage: addnote -p \"user_password\" 
Flags:
  -h, --help              help for addlogin
  -p, --password string   User password value.
  -n, --note string     User note  
  --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().AddNote(userPassword, &noteForAdditing)
	},
}
View Source
var DelNote = &cobra.Command{
	Use:   "delnote",
	Short: "Delete user note by id",
	Long: `
This command remove note
Usage: delnote -i \"note_id\" 
Flags:
  -i, --id string Card id
  -p, --password string   User password value.`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().DelNote(userPassword, delNoteID)
	},
}
View Source
var GetNote = &cobra.Command{
	Use:   "getnote",
	Short: "Show user note by id",
	Long: `
This command show user note
Usage: getnote -i \"note_id\" 
Flags:
  -i, --id string Note id
  -p, --password string   User password value.`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().ShowNote(userPassword, getNoteID)
	},
}

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