fileops

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedGlobFiles        = errorx.NewType(errorx.CommonErrors, "ErrFailedGlobFiles")
	ErrFailedReadFileInfo     = errorx.NewType(errorx.CommonErrors, "ErrFailedReadFileInfo")
	ErrFailedWriteFileContent = errorx.NewType(errorx.CommonErrors, "ErrFailedWriteFileContent")
)

Functions

func GetConfigFiles

func GetConfigFiles(config *app.Config) ([]app.File, error)

GetConfigFiles resolves Glob pattern in Name, returning a slice of app.File with resoved file names

func GetVersion

func GetVersion(config *app.Config) (string, error)

GetVersion gets project version from the first file in config

func SetVersion

func SetVersion(config *app.Config, version string) error

SetVersion writes a version in all config files

Types

This section is empty.

Jump to

Keyboard shortcuts

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