cmdutil

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainCallbacks

func ChainCallbacks(funcs ...runEFunc) runEFunc

func RepoPathRefCmd

func RepoPathRefCmd(root *cobra.Command, dest **RepoPathRef, required bool)

sets up the parsing from the command returns a PreRunE

func RepoPathRefFlag

func RepoPathRefFlag(cmd *cobra.Command, dest *string)

func SetupDatabaseFlag

func SetupDatabaseFlag(cmd *cobra.Command)

Types

type RepoPathRef

type RepoPathRef struct {
	// contains filtered or unexported fields
}

func RepoPathRefParse

func RepoPathRefParse(value string) (*RepoPathRef, error)

Parses "repo-path-tag"

Format:

[github.com/]Owner/Repo/Path/To/migrations@TAG

Returns (repoName, ref, path)

func (RepoPathRef) Owner

func (r RepoPathRef) Owner() string

func (RepoPathRef) Path

func (r RepoPathRef) Path() string

func (RepoPathRef) Ref

func (r RepoPathRef) Ref() string

func (RepoPathRef) Repository

func (r RepoPathRef) Repository() string

func (RepoPathRef) RepositoryName

func (r RepoPathRef) RepositoryName() string

func (RepoPathRef) String

func (r RepoPathRef) String() string

func (*RepoPathRef) Validate

func (r *RepoPathRef) Validate() error

Jump to

Keyboard shortcuts

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