cmdadmin

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "admin",
	Usage: "Admin tasks",
	Commands: []*cli.Command{
		{
			Name:  "create-user",
			Usage: "Create or update a user",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:     "username",
					Aliases:  []string{"u"},
					Usage:    "Username of the user",
					Value:    "admin",
					Required: false,
				},
				&cli.StringFlag{
					Name:    "password",
					Aliases: []string{"p"},
					Usage:   "Password (generated if not provided)",
				},
				&cli.StringFlag{
					Name:    "database-url",
					Usage:   "PostgreSQL connection string",
					Value:   "postgres://postgres:postgres@localhost:5432/gmaps_pro?sslmode=disable",
					Sources: cli.EnvVars(saas.EnvDatabaseURL),
				},
				&cli.StringFlag{
					Name:     "encryption-key",
					Usage:    "Hex-encoded 32-byte encryption key for sensitive data",
					Sources:  cli.EnvVars(saas.EnvEncryptionKey),
					Value:    "0398d4cad290e145cb8242bb74e045264564d384d33ada80ff7702e460e6956c",
					Required: false,
				},
			},
			Action: runCreateUser,
		},
	},
}

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