pkg

package
v0.0.0-...-ed9f1b2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS_PROMPT = "success"
	ERRORED_PROMPT = "errored"
)
View Source
const (
	GITHUB_DOMAIN     = "github.com"
	GITHUB_RAW_DOMAIN = "raw.githubusercontent.com"
	README_MD         = "README.md"
	EXTENSION_MD      = ".md"
)

Variables

This section is empty.

Functions

func DB

func DB() *badger.DB

Types

type LineHandler

type LineHandler struct {
	// contains filtered or unexported fields
}

func NewLineHandler

func NewLineHandler() *LineHandler

type PromptHandler

type PromptHandler struct {
	// contains filtered or unexported fields
}

func NewPromptHandler

func NewPromptHandler(prompts []string) *PromptHandler

func (*PromptHandler) ClearColoredPrompts

func (h *PromptHandler) ClearColoredPrompts()

func (*PromptHandler) Execute

func (h *PromptHandler) Execute() error

func (*PromptHandler) GetColoredPrompts

func (h *PromptHandler) GetColoredPrompts() []string

func (*PromptHandler) MultiSelect

func (h *PromptHandler) MultiSelect() []string

type ReadmeHandler

type ReadmeHandler struct {
	ReadmePath string
	Tag        string
	// contains filtered or unexported fields
}

func NewReadmeHandler

func NewReadmeHandler(readmePath string, tag string) *ReadmeHandler

func (*ReadmeHandler) Codelines

func (h *ReadmeHandler) Codelines() []string

type StorageHandler

type StorageHandler struct {
}

func NewStorageHandler

func NewStorageHandler() *StorageHandler

func (*StorageHandler) Delete

func (h *StorageHandler) Delete(key string) error

func (*StorageHandler) Get

func (h *StorageHandler) Get(key string) (string, error)

func (*StorageHandler) Set

func (h *StorageHandler) Set(key, value string) error

type URLHandler

type URLHandler struct {
	// contains filtered or unexported fields
}

func NewURLHandler

func NewURLHandler() *URLHandler

func (*URLHandler) IsRemotePath

func (h *URLHandler) IsRemotePath(path string) bool

Jump to

Keyboard shortcuts

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