cmd

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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