utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

Exists returns a boolean indicating if the givin path already exists

func FindDirInPath

func FindDirInPath(search string) (string, error)

FindDirInPath walks up the current directory looking for the .astro folder

func GetHomeDir

func GetHomeDir() string

GetHomeDir returns the home directory

func GetWorkingDir

func GetWorkingDir() string

GetWorkingDir returns the curent working directory

func InputConfirm added in v0.0.5

func InputConfirm(promptText string) (bool, error)

InputConfirm requests a user to confirm their input

func InputPassword added in v0.0.5

func InputPassword(promptText string) (string, error)

InputPassword requests a users passord, does not print out what they entered, and returns it

func InputText added in v0.0.5

func InputText(promptText string) string

InputText requests a user for input text and returns it

func WriteStringToFile

func WriteStringToFile(path string, s string) error

WriteStringToFile write a string to a file

func WriteToFile

func WriteToFile(path string, r io.Reader) error

WriteToFile writes an io.Reader to a file if it does not exst

Types

This section is empty.

Jump to

Keyboard shortcuts

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