util

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PLGIN_PATTERN = "^plugins\\s*=\\s*\\((.*)\\)$"
)

Variables

View Source
var (
	PLUGIN_HOLDER_DEFAULT string
	PLUGIN_HOLDER_CUSTOM  string
)
View Source
var PluginLocation = new(Plugin)

Functions

func DetectNotInstalledPlugin

func DetectNotInstalledPlugin(plugin []string) ([]string, error)

func FindMissing

func FindMissing(str1 []string, entries []os.DirEntry) []string

get missing string in str1 - (str1 & str2.name)

func GetPluginFromZshrc

func GetPluginFromZshrc(zshrcPath string) ([]string, error)

func InstallPluginByGit

func InstallPluginByGit(pluginname, gitPath string) error

Default install location: custom/plugin

func Setup

func Setup() error

Types

type Plugin

type Plugin struct {
	Git map[string]string `yaml:"git"`
}

Jump to

Keyboard shortcuts

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