Documentation
¶
Index ¶
- Variables
- func CheckIfDirExists(input string) bool
- func FindSystemCommand(w io.Writer, command string, args []string) (*exec.Cmd, error)
- func FindSystemCommandVersion(w io.Writer, command string, hasPrefix bool, prefix string) (string, error)
- func GenKeys() ([]byte, []byte, error)
- func GetConfigDir(dry bool) (string, error)
- func GetGitToken() string
- func IsFolderrInstalled(directory string) (bool, error)
- func IsValidPath(input string) bool
- func ManipulateDir(input string) string
- func ReadConfig(directory string, dry bool) (*viper.Viper, Config, SecretConfig, error)
- type Config
- type Consts
- type DBConfig
- type InitCheck
- type SecretConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Constants = Consts{
EnvPrefix: "FOLDCLI_",
RootCmdName: "foldcli",
}
Functions ¶
func CheckIfDirExists ¶
func FindSystemCommand ¶
func GenKeys ¶
Generates public & private PEM encoded keys for Folderr's usage in its authentication handling. Returns privateKey, publicKey, error
func GetConfigDir ¶
func GetGitToken ¶
func GetGitToken() string
func IsFolderrInstalled ¶
Checks if Folderr is installed
May not be compliant with future versions of Folderr. Oh well.
func IsValidPath ¶
func ManipulateDir ¶
func ReadConfig ¶
Types ¶
type InitCheck ¶
func CheckInitialization ¶
type SecretConfig ¶
type SecretConfig struct {
GitToken string
}
Click to show internal directories.
Click to hide internal directories.