crud

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrudCommand

func CrudCommand(f *factory.Factory) (*cobra.Command, error)

CrudCommand returns the crud command. This will be added to the charmil CLI as a sub-command

Types

type TemplateData added in v0.8.2

type TemplateData struct {

	// Stores value of the `singular` local flag
	Singular string

	// Stores value of the `plural` local flag
	Plural string

	// Stores the name of the root module (extracted from go.mod file)
	ModName string
	// contains filtered or unexported fields
}

TemplateData defines fields that will store all the data used for generating templates

Jump to

Keyboard shortcuts

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