cmd

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Root = &cobra.Command{
		Use:     "module",
		Aliases: []string{"m"},
		Short:   "module 指令",
		Long:    `module 指令`,
		Run: func(cmd *cobra.Command, args []string) {
			if pkg == "" || filename == "" || destination == "" || source == "" {
				cmd.Help()
				return
			}
			repo := builder.NewRepositoryBuilder(source, filename, destination, pkg)
			repo.Save(repo.General())
			svc := builder2.NewServiceBuilder(source, filename, destination, pkg)
			svc.Save(svc.General())
			delivery := builder3.NewHttpBuilder(destination+"/"+pkg, "service.go", destination, pkg)
			delivery.Save(svc.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