commands

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClaimCommands = []cli.Command{}
View Source
var DbCommands = []cli.Command{{
	Name:  "db",
	Usage: "operate with database",
	Subcommands: []cli.Command{
		{
			Name:  "rawdump",
			Usage: "dump database raw key values",
			Action: cmd.WithCfg(func(c *cli.Context, cfg *config.Config) error {
				return cmd.CmdDbRawDump(c, cfg.Storage.Path)
			}),
		},
		{
			Name:  "ipfsexport",
			Usage: "export database values to ipfs",
			Action: cmd.WithCfg(func(c *cli.Context, cfg *config.Config) error {
				return cmd.CmdDbIPFSexport(c, cfg.Storage.Path)
			}),
		},
	},
}}
View Source
var ServerCommands = []cli.Command{
	{
		Name:    "init",
		Aliases: []string{},
		Usage:   "create keys and identity for the server",
		Action:  cmd.CmdNewIssuer,
	},
	{
		Name:    "start",
		Aliases: []string{},
		Usage:   "start the server",
		Action: cmd.WithCfg(func(c *cli.Context, cfg *config.Config) error {
			return cmd.CmdStart(c, cfg, endpoint.Serve)
		}),
	},
	{
		Name:    "sync",
		Aliases: []string{},
		Usage:   "sync the identity state with the smart contract",
		Action:  cmd.WithCfg(cmd.CmdSync),
	},

	{
		Name:  "eth",
		Usage: "create and manage eth wallet",
		Subcommands: []cli.Command{{
			Name:    "new",
			Aliases: []string{},
			Usage:   "create new Eth Account Address",
			Action:  cmd.CmdNewEthAccount,
		},
			{
				Name:    "import",
				Aliases: []string{},
				Usage:   "import Eth Account Private Key",
				Action:  cmd.CmdImportEthAccount,
			}},
	},
}

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