Documentation ¶
Index ¶
- Variables
- func Die(message string)
- func ExecBinScript(script string, args ...string) (err error)
- func GetConfigExtensionList() (conExtList []string)
- func GetCurrentDirectory() (dir string, err error)
- func GetDuration_fromUnixTimestamp(timestamp int64) (duration time.Duration)
- func GetFreePort() (port int, err error)
- func GetHolochain(name string, service *holo.Service, cmd string) (h *holo.Holochain, err error)
- func GetHolochainRoot(root string) (string, error)
- func GetService(root string) (service *holo.Service, err error)
- func GetTmpDir(name string) (d string, err error)
- func GetUnixTimestamp_secondsFromNow(seconds int) int64
- func GolangHolochainDir(subPath ...string) (path string, err error)
- func IsAppDir(path string) (err error)
- func IsDir(pathParts ...string) bool
- func IsFile(path ...string) bool
- func IsFileFromString(path string) bool
- func MakeErr(c *cli.Context, text string) error
- func MakeErrFromErr(c *cli.Context, err error) error
- func MakeTmpDir(name string) (tmpHolochainCopyDir string, err error)
- func OsExecPipes(args ...string) *exec.Cmd
- func OsExecPipes_noRun(args ...string) *exec.Cmd
- func OsExecSilent(args ...string) error
- func RunAppWithStdoutCapture(app *cli.App, args []string, wait time.Duration) (out string, err error)
- func UpackageAppPackage(service *holo.Service, appPackagePath string, toPath string, appName string, ...) (appPackage *holo.AppPackage, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrServiceUninitialized = errors.New("service not initialized, run 'hcadmin init'")
Functions ¶
func ExecBinScript ¶
func GetConfigExtensionList ¶
func GetConfigExtensionList() (conExtList []string)
func GetCurrentDirectory ¶
func GetFreePort ¶
Ask the kernel for a free open port that is ready to use
func GetHolochain ¶
GetHolochain os a helper function to load a holochain from a directory or report an error based on a command name
func GetHolochainRoot ¶
GetHolochainRoot returns either the path from the environment variable or the default
func GetService ¶
GetService is a helper function to load the holochain service from default locations or a given path
func GolangHolochainDir ¶
func IsAppDir ¶
IsAppDir tests path to see if it's a properly set up holochain app returns nil on success or error describing the problem
func IsFileFromString ¶
func MakeTmpDir ¶
func OsExecPipes ¶
OsExecPipes executes a command as if we are in a shell, including user input
func OsExecPipes_noRun ¶
OsExecPipes executes a command as if we are in a shell, including user input
func OsExecSilent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.