add

package
v0.0.0-...-7749cd0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdAdd = &cobra.Command{
	Use:   "add",
	Short: "Create a repo file by template",
	Long:  "Create a repo file using the repo template. Example: gole repo add UserCache",
	Run:   run,
}

CmdAdd represents the new command.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Name      string
	LcName    string
	UsName    string
	Path      string
	Service   string
	Package   string
	ModName   string
	WithCache bool
}

Repo is a cache generator.

func (*Repo) Generate

func (r *Repo) Generate() error

Generate generate a repo template.

Jump to

Keyboard shortcuts

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