commands

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = []cli.Flag{
	&cli.StringFlag{
		Name:     "token",
		Aliases:  []string{"t"},
		Required: false,
		Value:    "",
	},
}
View Source
var GoPackageCommand = &cli.Command{
	Name:        common.GoCommandName,
	Usage:       common.GoCommandUsage,
	Description: figure.NewFigure("rsearch "+common.GoCommandName, "", true).String() + common.GoCommandUsage,
	Action:      Exec,
}
View Source
var (
	SyncCommand = &cli.Command{
		Name:        common.CommandName,
		Usage:       common.CommandUsage,
		Description: figure.NewFigure("rsearch "+common.CommandName, "", true).String() + common.CommandUsage,
		Action:      Run,
		Flags:       Flags,
	}
)
View Source
var TagCommand = &cli.Command{
	Name:        tagCommandName,
	Usage:       "获取所有的标签",
	Description: figure.NewFigure("rsearch "+tagCommandName, "", true).String(),
	Action:      Runs,
	Flags:       Flags,
}

Functions

func Exec

func Exec(c *cli.Context) error

func Run

func Run(ctx *cli.Context) error

func Runs

func Runs(ctx *cli.Context) error
func Search(keyword, tag string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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