Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "cruder",
Short: "Generate code for CRUD functions from a Go struct",
Long: `cruder is a tool to generate code for Create, Read, Update, Delete functions
from a Go struct. It supports multiple generators which are listed in the 'Available
Commands section'. Functions that can be generated are:
- Create: Adds an entry
- Read: Gets an entry using an ID
- List: Gets multiple entries
- Update: Updates an entry
- Delete: Deletes an entry using an ID
`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
Types ¶
This section is empty.
Source Files
¶
- parser.go
- pg.go
- root.go
Click to show internal directories.
Click to hide internal directories.