Documentation ¶
Index ¶
- func GitBranch(ctx context.Context, wd string) utils.LazyValue
- func GitBranchFromCI() string
- func GitCommit(ctx context.Context, dir string) utils.LazyValue
- func GitCommitFromCI() string
- func GitDefaultBranch(ctx context.Context, dir string) utils.LazyValue
- func GitTag(ctx context.Context, dir string) utils.LazyValue
- func GitTagFromCI() string
- func GitWorkTreeClean(ctx context.Context, dir string) utils.LazyValue
- func NewRootCmd(prevCtx dukkha.Context) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitBranchFromCI ¶ added in v0.6.0
func GitBranchFromCI() string
GitBranchFromCI find git branch name from ci env
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
GitDefaultBranch find default git branch of dir
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
GitWorkTreeClean check whether current dir contains no new file or uncommitted changes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.