flags

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const PASSWORD_LENGTH = 16

Variables

View Source
var DbConfig pgconn.Config
View Source
var ProjectRef string

Functions

func ListNetworkBans

func ListNetworkBans(ctx context.Context, projectRef string) ([]string, error)

func LoadConfig

func LoadConfig(fsys afero.Fs) error

func LoadProjectRef

func LoadProjectRef(fsys afero.Fs) error

func NewDbConfigWithPassword

func NewDbConfigWithPassword(ctx context.Context, projectRef string) (pgconn.Config, error)

func ParseDatabaseConfig

func ParseDatabaseConfig(ctx context.Context, flagSet *pflag.FlagSet, fsys afero.Fs) error

func ParseProjectRef

func ParseProjectRef(ctx context.Context, fsys afero.Fs) error

func PromptPassword

func PromptPassword(stdin *os.File) string

func PromptProjectRef

func PromptProjectRef(ctx context.Context, title string, opts ...tea.ProgramOption) error

func RandomString

func RandomString(size int) (string, error)

func UnbanIP

func UnbanIP(ctx context.Context, projectRef string, addrs ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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