Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FaucetCmd = &cobra.Command{ Args: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { return errors.New("missing address") } return nil }, Use: "faucet <address> [amount] [asset]", Short: "Generate and send bitcoin to given address", RunE: faucet, PreRunE: faucetChecks, }
View Source
var LogsCmd = &cobra.Command{ Args: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return errors.New(logsDescription) } _, found := controller.Services[args[0]] if !found { return errors.New(logsDescription) } return nil }, Use: "logs <service>", Short: logsDescription, Long: logsDescription, RunE: logs, PreRunE: logsChecks, }
View Source
var MintCmd = &cobra.Command{
Use: "mint <address> <ammount> [name] [ticker]",
Short: "Liquid only: Issue and send a given quantity of an asset",
RunE: mint,
PreRunE: mintChecks,
}
View Source
var PushCmd = &cobra.Command{ Args: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return errors.New("Missing hex encoded transaction") } return nil }, Use: "push <hex>", Short: "Broadcast raw transaction", RunE: push, PreRunE: pushChecks, }
View Source
var RootCmd = &cobra.Command{
Use: "nigiri",
Short: "Nigiri lets you manage a full dockerized bitcoin environment",
Long: "Nigiri lets you create your dockerized environment with a bitcoin and optionally a liquid node + block explorer powered by an electrum server for every network",
}
View Source
var RpcCmd = &cobra.Command{
Use: "rpc <command>",
Short: "Invoke the bitcoin-cli or elements-cli",
RunE: rpc,
PreRunE: rpcChecks,
}
View Source
var StartCmd = &cobra.Command{
Use: "start",
Short: "Build and start Nigiri",
RunE: start,
PreRunE: startChecks,
}
View Source
var StopCmd = &cobra.Command{
Use: "stop",
Short: "Stop and/or delete nigiri",
RunE: stop,
PreRunE: stopChecks,
}
View Source
var (
VersionCmd = &cobra.Command{
Use: "version",
Short: "Show the current version",
RunE: versionFunc,
}
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.