utils

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMutuallyExclusiveSettings

func CheckMutuallyExclusiveSettings(config *viper.Viper) error

CheckMutuallyExclusiveSettings does what its name says

func GetConfig

func GetConfig() (*viper.Viper, error)

GetConfig parse the devcontainer.json file and return a viper config object

func Md5Sum

func Md5Sum(str string) (md5sum string)

Md5Sum return md5 hash for a string

func RemoveFromSlice

func RemoveFromSlice(sliceIn []string, remove string) (sliceOut []string)

RemoveFromSlice return a slice of strings without the given string

func Run

func Run(command []string, verbose bool) (err error)

Run runs the given command while attaching stdin, stdout and stderr

func RunOut

func RunOut(command []string) (out string, err error)

RunOut runs the given command and return stdout as string

Types

This section is empty.

Jump to

Keyboard shortcuts

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