commands

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerCmd = &cli.Command{
	Name:  "moneyd",
	Usage: "Starts the Money Gopher server.",
	Flags: []cli.Flag{
		&cli.BoolFlag{Name: "debug", Aliases: []string{"d"},
			Destination: &opts.Debug},
		&cli.StringFlag{
			Name:        "embedded-oauth2-server-dashboard-callback",
			Value:       "http://localhost:3000/api/auth/callback/money-gopher",
			Usage:       "Specifies the callback URL for the dashboard, if the embedded oauth2 server is used",
			Destination: &opts.EmbeddedOAuth2ServerDashboardCallback,
		},
		&cli.StringFlag{
			Name:        "private-key-file",
			Value:       "private.key",
			Destination: &opts.PrivateKeyFile,
		},
		&cli.StringFlag{
			Name:        "private-key-password",
			Value:       "moneymoneymoney",
			Destination: &opts.PrivateKeyPassword,
		},
	},
	Action: RunServer,
}

ServerCmd is the command to start the Money Gopher server.

Functions

func RunServer

func RunServer(ctx context.Context, cmd *cli.Command) error

RunServer is the action for the server command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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