builtin

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ZshShell  = "zsh"
	BashShell = "bash"
)

current supported shell

Variables

View Source
var GenCmdCode = &gcli.Command{
	Name: "gen-cmd",
	Desc: "quick generate gcli command code",
}

GenCmdCode command

View Source
var GenEmojiMap = &gcli.Command{
	Name:    "gen-emojis",
	Aliases: []string{"gen-emj"},

	Func: gem.run,

	Desc: "fetch emoji codes form data source url, then generate a go file.",

	Config: func(c *gcli.Command) {
		gem.c = c
		c.StrOpt(
			&gem.source, "source", "s", "gemoji",
			"the emoji data source, allow: muan, gemoji, unicode",
		)
		c.StrOpt(&gem.saveDir, "dir", "d", "./", "the generated go file save `DIR` path")
		c.BoolOpt(&gem.onlyGen, "onlyGen", "", false, "whether only generate go file from exists emoji data file")
	},
	Help: `source allow:
 muan - https://raw.githubusercontent.com/muan/emoji/gh-pages/javascripts/emojilib/emojis.json
 gemoji - https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json
 unicode - https://unicode.org/Public/emoji/11.0/emoji-test.txt
`,
}

GenEmojiMap create

Functions

func GenAutoComplete

func GenAutoComplete(fns ...func(c *gcli.Command)) *gcli.Command

GenAutoComplete create command

Types

type Gemoji

type Gemoji struct {
	Aliases     []string `json:"aliases"`
	Description string   `json:"description"`
	Emoji       string   `json:"emoji"`
	Tags        []string `json:"tags"`
}

Gemoji definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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