check

package
v0.0.0-...-51c144e Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(path string) string

Branch - returns current git branch

func Color

func Color(str string) string

Color - returns color hash for any string

func IfError

func IfError(err error) bool

IfError prints error, if it is not nil

func IsDir

func IsDir(path string) bool

IsDir - check if path is a directory

func IsRepo

func IsRepo(path string) bool

IsRepo checks if the path is git repo

func ListDir

func ListDir(path string) []string

ListDir - get list of directories

func Name

func Name(path string) string

Name - return dir name from path

func ParseConfig

func ParseConfig(path string) (string, []string)

ParseConfig - get user and remotes

func Path

func Path(path string)

Path - create path if not exist

func ReplaceReponame

func ReplaceReponame(block, name string) string

ReplaceReponame - replace variable $REPONAME with the name of the repo

func URL

func URL(path string, urls []string) []string

URL - checks if string is in .git/config

Types

This section is empty.

Jump to

Keyboard shortcuts

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