utils

package
v0.0.0-...-96d1179 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyBranchErr = errors.New("empty branch error")
View Source
var EmptyTagErr = errors.New("empty tag error")

Functions

func GetAddFiles

func GetAddFiles(ignore ds.BuiltinSet[string]) ([]string, error)

func GetFromStdio

func GetFromStdio(hint string, simple bool, words ...string) string

func GitAddAll

func GitAddAll() error

func GitAddAndCommit

func GitAddAndCommit(msg string) error

func GitAddTag

func GitAddTag(tag string) error

func GitAddWithConfirm

func GitAddWithConfirm(msg string) error

func GitCheckConflict

func GitCheckConflict() error

func GitCheckDirtyZone

func GitCheckDirtyZone() error

func GitCheckout

func GitCheckout(branch string, newBranch ...bool) error

func GitCurrentBranch

func GitCurrentBranch() (string, error)

func GitMerge

func GitMerge(branch string) error

func GitPull

func GitPull(branch string) error

func GitPullTags

func GitPullTags() error

func GitPush

func GitPush(branch string, force ...bool) error

func GitPushTag

func GitPushTag(tag string) error

func GitStash

func GitStash(msg string) error

func GitStashPop

func GitStashPop() error

func GitTags

func GitTags() ([]string, error)

func ListAllBranch

func ListAllBranch() ([]string, error)

func PullBranch

func PullBranch(branch string) error

func PullRemoteRepository

func PullRemoteRepository() error

func PushBranch

func PushBranch(branch string) error

func RunCmd

func RunCmd(cmd string) error

func RunCmdWithOutput

func RunCmdWithOutput(cmd string, printLog bool) (string, error)

func RunInteractiveCmd

func RunInteractiveCmd(cmd string, args []string) error

func SearchFile

func SearchFile(cmd string) (string, error)

func SimpleGetFromStdio

func SimpleGetFromStdio(hint string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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