config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultConfig

func CreateDefaultConfig()

func GetConfigFilePath

func GetConfigFilePath() string

func GetCurrentBranch

func GetCurrentBranch() (string, error)

func GetFgColor

func GetFgColor()

func GetGitUser

func GetGitUser() (string, error)

func GetHomeDir

func GetHomeDir() string

func IsGitRepository

func IsGitRepository() bool

func MakeConfigFile

func MakeConfigFile() (string, error)

return configFilePath, error

Types

type Config

type Config struct {
	// Prompt
	Prompt Prompt `json:"prompt"`
}

type Prompt

type Prompt struct {
	// Prompt
	FgColor string `json:"fgcolor"`
	BgColor string `json:"bgcolor"`
}

Jump to

Keyboard shortcuts

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