cmd

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "development"

Version is the pgroll version

Functions

func EnsureInitialized added in v0.12.0

func EnsureInitialized(ctx context.Context, state *state.State) error

EnsureInitialized checks if the pgroll state schema is initialized. Returns an error if the check fails or if pgroll is not initialized.

func Execute

func Execute() error

Execute executes the root command.

func NewRoll

func NewRoll(ctx context.Context) (*roll.Roll, error)

func NewRollWithInitCheck added in v0.12.0

func NewRollWithInitCheck(ctx context.Context) (*roll.Roll, error)

NewRollWithInitCheck creates a roll instance and checks if pgroll is initialized. Returns the roll instance and an error if creation fails or if pgroll is not initialized.

func Prepare added in v0.9.0

func Prepare() *cobra.Command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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