cmd

package
v0.6.27 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateProjectCmd = &cobra.Command{
	Use: "create-project",
	RunE: func(cmd *cobra.Command, args []string) error {
		err := config.BindCmdFlags(cmd)
		if err != nil {
			return err
		}
		r := genny.WetRunner(context.Background())
		if config.GetBool("dry-run") {
			r = genny.DryRunner(context.Background())
		}

		g := genny.New()
		setupSkeleton(g)
		goModuleInit(g)
		goModuleTidy(g)
		goModuleVendor(g)
		gofmt(g)

		err = r.With(g)
		if err != nil {
			return err
		}
		return r.Run()
	},
}
View Source
var GenProtoCmd = &cobra.Command{
	Use: "gen-proto",
	RunE: func(cmd *cobra.Command, args []string) error {
		r := genny.WetRunner(context.Background())
		if config.GetBool("dry-run") {
			r = genny.DryRunner(context.Background())
		}

		g := genny.New()
		compileProto(g)
		gofmt(g)
		goModuleTidy(g)
		goModuleVendor(g)

		err := r.With(g)
		if err != nil {
			return err
		}
		return r.Run()
	},
}
View Source
var RootCmd = &cobra.Command{
	Use: "rony",
}

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