cmd

package
v1.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cmd provides a set of commands used in CLI.

Index

Constants

View Source
const (
	// ErrCodeArg when the CLI argument is invalid.
	ErrCodeArg = 101
	// ErrCodeMigration when the migration operation fails.
	ErrCodeMigration = 103
	// ErrCodeCommand when the SQL command operation fails.
	ErrCodeCommand = 104
	// ErrCodeSchema when the SQL schema operation fails.
	ErrCodeSchema = 105
)

Variables

This section is empty.

Functions

func BeforeEach

func BeforeEach(ctx *cli.Context) error

BeforeEach is a function executed before each CLI operation.

Types

type SQLMigration

type SQLMigration struct {
	// contains filtered or unexported fields
}

SQLMigration provides a subcommands to work with SQL migrations.

func (*SQLMigration) CreateCommand

func (m *SQLMigration) CreateCommand() *cli.Command

CreateCommand creates a cli.Command that can be used by cli.App.

type SQLModel

type SQLModel struct {
	// contains filtered or unexported fields
}

SQLModel provides a subcommands to work generate structs from existing schema

func (*SQLModel) CreateCommand

func (m *SQLModel) CreateCommand() *cli.Command

CreateCommand creates a cli.Command that can be used by cli.App.

type SQLRepository

type SQLRepository struct {
	// contains filtered or unexported fields
}

SQLRepository provides a subcommands to work generate repository from existing schema

func (*SQLRepository) CreateCommand

func (m *SQLRepository) CreateCommand() *cli.Command

CreateCommand creates a cli.Command that can be used by cli.App.

type SQLRoutine

type SQLRoutine struct {
	// contains filtered or unexported fields
}

SQLRoutine provides a subcommands to work with SQL scripts and their statements.

func (*SQLRoutine) CreateCommand

func (m *SQLRoutine) CreateCommand() *cli.Command

CreateCommand creates a cli.Command that can be used by cli.App.

Directories

Path Synopsis
Command Line Interface of GOM.
Command Line Interface of GOM.

Jump to

Keyboard shortcuts

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