common

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigUsage string = `` /* 642-byte string literal not displayed */

Functions

func AbsHomeDir

func AbsHomeDir(path string) string

func ConfDir

func ConfDir() string

func GenerateConfig

func GenerateConfig(configPath string) *os.File

func GetSSHPubKey added in v0.0.6

func GetSSHPubKey() []byte

func GitCloneOrPull

func GitCloneOrPull(url string, path string, wg *sync.WaitGroup)

func GitStatus added in v0.0.4

func GitStatus(path string, wg *sync.WaitGroup)

func GitWalk added in v0.0.4

func GitWalk(path string)

Types

type Config

type Config struct {
	Token string `json:"token"`
	Path  string `json:"path"`
}

func GetConfig

func GetConfig(path string) Config

Jump to

Keyboard shortcuts

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