Documentation
¶
Index ¶
- func AskConfirmation(question string, optimistic bool) (bool, error)
- func CopyDir(src, dest string) error
- func CopyFile(src, dest string) error
- func DoAuthorizedReq(ctx infra.DnoteCtx, apiKey, method, path, body string) (*http.Response, error)
- func FileExists(filepath string) bool
- func GenerateUUID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskConfirmation ¶
AskConfirmation prompts for user input to confirm a choice
func CopyDir ¶ added in v0.2.0
CopyDir copies a directory from src to dest, recursively copying nested directories
func DoAuthorizedReq ¶ added in v0.4.9
DoAuthorizedReq does a http request to the given path in the api endpoint as a user, with the appropriate headers. The given path should include the preceding slash.
func FileExists ¶ added in v0.2.0
FileExists checks if the file exists at the given path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.