repo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation ยถ

Index ยถ

Constants ยถ

This section is empty.

Variables ยถ

View Source
var TopicMap = map[string]string{
	"docker":    "๐Ÿณ",
	"db":        "๐Ÿ—„",
	"server":    "๐Ÿ›ฐ",
	"browser":   "๐ŸŒ",
	"neo4j":     "๐Ÿ“Š",
	"spring":    "๐Ÿƒ",
	"kafka":     "๐Ÿž",
	"couchbase": "๐Ÿ›‹",
	"elk":       "๐Ÿ“Š ๐Ÿ”ฌ ๐Ÿ“บ",
	"python":    "๐Ÿ",
	"c":         "๐—–",
	"cpp":       "๐—–++",
	"dotnet":    ".๐ŸŒ",
	"java":      "โ˜•๏ธ",
	"configs":   "๐Ÿ“",
	"json":      "J๐Ÿ‘ถ",
}

TopicMap a list of topics and corresponding emojis

Functions ยถ

func AutoPull ยถ

func AutoPull(cfg config.SaneConfig, repo config.Repo, home string) config.SaneConfig

AutoPull pulls if not exists

func GetFolder ยถ

func GetFolder(repo config.Repo) string

GetFolder get the folder of a config

func GetRepoFromString ยถ

func GetRepoFromString(configString string) config.Repo

GetRepoFromString get repo config from string

func GetTopics ยถ

func GetTopics(topics []string) string

GetTopics get string representation of Repo topics

func Pull ยถ

func Pull(repo config.Repo, home string, cfg config.SaneConfig) config.SaneConfig

Pull a repo from Gh

func Purge ยถ

func Purge(repo config.Repo, home string, cfg config.SaneConfig) config.SaneConfig

Purge a repo

Types ยถ

type GhResult ยถ

type GhResult struct {
	Names []string `json:"names"`
}

GhResult struct for result returned by Gh API

Jump to

Keyboard shortcuts

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