repository

package
v0.0.0-...-67e434f Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateRepositoryCmd = &cli.Command{
	Name: "repository",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:        "dsn",
			Usage:       "DSN for gorm.io/gen. Example: \"host=localhost user=postgres password=password dbname=clean-protobuf port=5432 sslmode=disable TimeZone=Etc/UTC\"",
			Required:    true,
			Destination: &dsn,
		},
		&cli.StringSliceFlag{
			Name:        "excluded-table",
			Aliases:     []string{"e"},
			Usage:       "Tables to exclude",
			Destination: &excluded,
		},
		&cli.StringFlag{
			Name:        "model-pkg",
			Required:    true,
			Usage:       "The model package",
			Destination: &modelPkg,
		},
		&cli.StringFlag{
			Name:        "interface-out",
			Value:       "./repository",
			Usage:       "The output path for the generated interfaces.",
			Destination: &interfaceOutputPath,
		},
		&cli.StringFlag{
			Name:        "implementation-out",
			Value:       "./infrastructure",
			Usage:       "The output path for the generated implementation.",
			Destination: &implementationOutputPath,
		},
		&cli.StringFlag{
			Name:        "template-path",
			Required:    true,
			Usage:       "The template file",
			Destination: &templatePath,
		},
	},
	Action: func(cCtx *cli.Context) error {
		return run()
	},
}

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