cmd

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Root = &cobra.Command{
		Use:     "repository",
		Aliases: []string{"repo"},
		Short:   "Repository 指令",
		Long:    `Repository 指令`,
		Run: func(cmd *cobra.Command, args []string) {
			if pkg == "" || filename == "" || destination == "" {
				cmd.Help()
				return
			}
			repo := builder.NewRepositoryBuilder(source, filename, destination, pkg)
			repo.Save(repo.General())
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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