util

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string)

func CreateFile

func CreateFile(path string)

func CreateFileWithContent

func CreateFileWithContent(path string, content string)

func ExistDir

func ExistDir(path string) bool

func ExistFile

func ExistFile(path string) bool

func GetCommitish

func GetCommitish() *string

func HasDependencies added in v1.4.8

func HasDependencies(packageJSON *typescript.PackageJson) bool

func IsFileTs added in v1.3.5

func IsFileTs(filePath string) bool

func MustExistDir

func MustExistDir(path string)

func MustExistFile

func MustExistFile(path string)

func MustLoadPackageJSON

func MustLoadPackageJSON(directory string) *typescript.PackageJson

func MustLoadTsConfig

func MustLoadTsConfig(directory string) *typescript.TsConfig

func MustSavePackageJSON

func MustSavePackageJSON(directory string, config *typescript.PackageJson)

func MustSaveTsConfig

func MustSaveTsConfig(directory string, config *typescript.TsConfig)

func MustZipAndHashDir added in v1.4.1

func MustZipAndHashDir(dirPath string, insidePath string, limitBytes int) ([]byte, string)

func MustZipDir

func MustZipDir(dirPath string, insidePath string, limitBytes int) []byte

func PackageJSONExists

func PackageJSONExists(directory string) bool

func ReadFile

func ReadFile(path string) string

func RemoveDirWithContent added in v1.4.5

func RemoveDirWithContent(path string)

func TsConfigExists

func TsConfigExists(directory string) bool

func ZipAndHashDir added in v1.4.1

func ZipAndHashDir(dirPath, insidePath string, limitBytes int) ([]byte, string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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