cmd

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitBranch added in v0.6.0

func GitBranch(ctx context.Context, wd string) utils.LazyValue

GitBranch find git branch name of working dir wd

func GitBranchFromCI added in v0.6.0

func GitBranchFromCI() string

GitBranchFromCI find git branch name from ci env

func GitCommit added in v0.6.0

func GitCommit(ctx context.Context, dir string) utils.LazyValue

GitCommit get git commit sha of working dir wd

func GitCommitFromCI added in v0.6.0

func GitCommitFromCI() string

GitCommitFromCI find git commit sha from ci env

func GitDefaultBranch added in v0.6.0

func GitDefaultBranch(ctx context.Context, dir string) utils.LazyValue

GitDefaultBranch find default git branch of dir

func GitTag added in v0.6.0

func GitTag(ctx context.Context, dir string) utils.LazyValue

GitTag find current git tag name of working dir wd

func GitTagFromCI added in v0.6.0

func GitTagFromCI() string

GitTagFromCI find git tag name from ci env

func GitWorkTreeClean added in v0.6.0

func GitWorkTreeClean(ctx context.Context, dir string) utils.LazyValue

GitWorkTreeClean check whether current dir contains no new file or uncommitted changes

func NewRootCmd

func NewRootCmd(prevCtx dukkha.Context) *cobra.Command

NewRootCmd creates the dukkha command with all sub commands added

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