cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitRepository

func GetGitRepository(ctx context.Context) (repo *git.Repository, ok bool)

func RunCatchErr

func RunCatchErr(fn RunFn) func(cmd *cobra.Command, args []string)

func WithGitRepository

func WithGitRepository(ctx context.Context, repo *git.Repository) context.Context

Types

type ContextKey

type ContextKey int
const (
	GitRepositoryKey ContextKey = iota
)

type RunFn

type RunFn func(ctx context.Context, cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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