setup

package
v2.0.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBSeeder

type DBSeeder interface {
	SeedDB(ctx context.Context, root string, args []string) error
}

type Migrater

type Migrater interface {
	MigrateDB(ctx context.Context, root string, args []string) error
}

type Setup

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

func (Setup) CmdName

func (Setup) CmdName() string

func (*Setup) Flags

func (setup *Setup) Flags() *pflag.FlagSet

func (Setup) PluginName

func (Setup) PluginName() string

func (*Setup) PrintFlags

func (setup *Setup) PrintFlags(w io.Writer) error

func (*Setup) ScopedPlugins

func (s *Setup) ScopedPlugins() []plugins.Plugin

func (*Setup) Setup

func (s *Setup) Setup(ctx context.Context, root string, args []string) error

func (*Setup) SetupFlags

func (setup *Setup) SetupFlags() []*pflag.Flag

func (*Setup) WithPlugins

func (s *Setup) WithPlugins(f plugins.Feeder)

Jump to

Keyboard shortcuts

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