{"modulePath":"github.com/recode-sh/cli","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package system\n\n## Variables\n\n```go\nvar NewLineChar = \"\\n\"\n```\n\n## Functions\n\n```go\nfunc AskForConfirmation(\n\tlogger interfaces.Logger,\n\tstdin io.Reader,\n\tquestion string,\n) (bool, error)\n```\n\n```go\nfunc DefaultSSHConfigFileExists() bool\n```\n\n```go\nfunc DefaultSSHConfigFilePath() string\n```\n\n```go\nfunc DefaultSSHDir() string\n```\n\n```go\nfunc DefaultSSHDirExists() bool\n```\n\n```go\nfunc DefaultSSHKnownHostsFileExists() bool\n```\n\n```go\nfunc DefaultSSHKnownHostsFilePath() string\n```\n\n```go\nfunc PathExists(path string) bool\n```\n\n```go\nfunc UserConfigDir() string\n```\nUserConfigDir returns the path where the user config files should be stored following XDG Base Directory Specification. Ref: [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html)\n\n```go\nfunc UserConfigFilePath() string\n```\n\n```go\nfunc UserHomeDir() string\n```\n\n## Types\n\n```go\ntype Browser struct{}\n```\n\n```go\nfunc NewBrowser() Browser\n```\n\n```go\nfunc (Browser) OpenURL(url string) error\n```\n\n```go\ntype Displayer struct{}\n```\n\n```go\nfunc NewDisplayer() Displayer\n```\n\n```go\nfunc (Displayer) Display(w io.Writer, format string, args ...interface{})\n```\n\n```go\ntype EnvVars struct{}\n```\n\n```go\nfunc NewEnvVars() EnvVars\n```\n\n```go\nfunc (EnvVars) Get(key string) string\n```\n\n```go\ntype Logger struct{}\n```\n\n```go\nfunc NewLogger() Logger\n```\n\n```go\nfunc (Logger) Error(format string, v ...interface{})\n```\n\n```go\nfunc (Logger) Info(format string, v ...interface{})\n```\n\n```go\nfunc (Logger) Log(format string, v ...interface{})\n```\n\n```go\nfunc (Logger) LogNoNewline(format string, v ...interface{})\n```\n\n```go\nfunc (Logger) Warning(format string, v ...interface{})\n```\n\n```go\nfunc (l Logger) Write(p []byte) (n int, err error)\n```\n\n```go\ntype Sleeper struct{}\n```\n\n```go\nfunc NewSleeper() Sleeper\n```\n\n```go\nfunc (Sleeper) Sleep(d time.Duration)\n```\n\n","path":"github.com/recode-sh/cli/internal/system","name":"system","synopsis":"","isRedistributable":true}
