utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetElk

func GetElk(filePath string, isGlobal bool) (*ox.Elk, error)

GetElk get an ox pointer from a file path

func IsPathADir

func IsPathADir(path string) (bool, error)

IsPathADir returns a bool depending if a path is a dir and an error if the file do not exist

func IsPathAFile

func IsPathAFile(path string) (bool, error)

IsPathAFile returns a bool depending if a path is a file and an error if the file do not exist

func IsPathExist

func IsPathExist(path string) bool

IsFileExist returns a bool depending if a file exist or not

func PrintError

func PrintError(err error)

PrintError display the error message in the cli

func RemoveDetachedFlag

func RemoveDetachedFlag(args []string) []string

RemoveDetachedFlag returns a command without the detached flag

func SetElk added in v0.8.0

func SetElk(elk *ox.Elk, filePath string) error

SetElk saves elk object in a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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