utils

package
v0.0.0-...-7da44d4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesDBExist

func DoesDBExist(dbDir string) (bool, error)

func GetRandomName

func GetRandomName() (name string)

Gets random name as the title says

func IsGitDir

func IsGitDir(path string) (bool, error)

Function to validate if the current directory is a git directory

func ValidateBasic

func ValidateBasic() (err error)

Does basic and necessary validations for all commands

Types

type ValidationError

type ValidationError struct {
	Message string
}

func (ValidationError) Error

func (e ValidationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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