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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterInitLocalStorage = &cobra.Command{
	Use:   "init",
	Short: "Init local storage",
	Long: `
This command register init sqlite db for storaging private data.
Usage: gophkeeperclient init`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().InitDB()
	},
}
View Source
var ShowVault = &cobra.Command{
	Use:   "showvault",
	Short: "Show user vault",
	Long: `
This command show user vault
Usage: showvault -o \"a|c|l|n\" 
Flags:
  -o, --option string     Option for listing (default "a")
	a - all
	c - cards
	l - logins
	n - notes
	b - bynaries
  -p, --password string   User password value.`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().ShowVault(userPassword, showVaultOption)
	},
}
View Source
var SyncUserData = &cobra.Command{
	Use:   "sync",
	Short: "Sync user`s data",
	Long: `
This command update users private data from server
Usage: gophkeeperclient sync -p \"user_password\"`,
	Run: func(cmd *cobra.Command, args []string) {
		usecase.GetClientUseCase().Sync(userPassword)
	},
}

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