utils

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommitToBranchFile

func AddCommitToBranchFile(branchName string, cmt models.Commit, filePath string) error

func CreateDirectory added in v1.0.18

func CreateDirectory(directoryPath string) error

func CreateDirectoryAndFileIfNotExist

func CreateDirectoryAndFileIfNotExist() error

func GetHomeDir added in v1.0.18

func GetHomeDir() (string, error)

func GetLastCommitForBranchFromFile

func GetLastCommitForBranchFromFile(branchName string, filepath string) (*models.Commit, error)

func GetRepoNameHash added in v1.0.18

func GetRepoNameHash() string

func LogFatal added in v1.0.8

func LogFatal(err error)

func LogNonFatal added in v1.0.18

func LogNonFatal(err error)

func LogOutput added in v1.0.8

func LogOutput(output string)

func ReadBranchesFile

func ReadBranchesFile(filePath string) (map[string][]models.Commit, error)

func ReadInput

func ReadInput(multi bool) string

func RunCommand added in v1.0.8

func RunCommand(name string, args []string, stdin string) (string, error)

func StartOkgit added in v1.0.18

func StartOkgit() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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