tools

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeFirstWord added in v1.4.1

func CapitalizeFirstWord(str string) string

CapitalizeFirstWord capitalizes only first character in the string

func GetAkamaiCliPath

func GetAkamaiCliPath() (string, error)

GetAkamaiCliPath returns the "$AKAMAI_CLI_HOME/.akamai-cli" value and tries to create it if not existing.

Errors out if:

* $AKAMAI_CLI_HOME is not defined

* $AKAMAI_CLI_HOME/.akamai-cli does not exist, and we cannot create it

func GetAkamaiCliSrcPath

func GetAkamaiCliSrcPath() (string, error)

GetAkamaiCliSrcPath returns $AKAMAI_CLI_HOME/.akamai-cli/src

func GetAkamaiCliVenvPath added in v1.4.1

func GetAkamaiCliVenvPath() (string, error)

GetAkamaiCliVenvPath - returns the .akamai-cli/venv path, for Python virtualenv

func GetPkgVenvPath added in v1.4.1

func GetPkgVenvPath(pkgName string) (string, error)

GetPkgVenvPath - returns the package virtualenv path

func Githubize

func Githubize(repo string) string

Githubize returns the GitHub package repository URI

func InsertAfterNthWord added in v1.5.0

func InsertAfterNthWord(s, val string, index int) string

InsertAfterNthWord inserts one string into another after the nth word specified by index

func MoveFile

func MoveFile(src, dst string) (err error)

MoveFile must copy+unlink the file because moving files is broken across filesystems

func Self

func Self() string

Self ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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