cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "exemplar",
	Short: "exemplar - the extensible code generation tool for Go",
	Long: `Exemplar is a tool that can be used from the command line
or as part of "//go:generate" comments to generate code based on structs or other types
in your application.`,
}

This represents the base command when called without any subcommands

Functions

func CamelCase

func CamelCase(src string) string

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type OutputBuffer

type OutputBuffer interface {
	Printf(format string, args ...interface{})
	Print(output string)
}

Jump to

Keyboard shortcuts

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