cmd

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SettingsYAML = "yaml"
	SettingsJSON = "json"
)
View Source
const DirPerms = 0700

Variables

This section is empty.

Functions

func DeployCommand

func DeployCommand(c *cli.Context) error

func GenerateRandomData

func GenerateRandomData(c *cli.Context) error

func GetAuthSubcommands

func GetAuthSubcommands() []*cli.Command

func GetBranchesSubcommands

func GetBranchesSubcommands() []*cli.Command

func GetDBsSubcommands

func GetDBsSubcommands() []*cli.Command

func GetWorkspacesSubcommands

func GetWorkspacesSubcommands() []*cli.Command

func GitGetLastSHA

func GitGetLastSHA() (sha string, err error)

func GitHasLocalChanges

func GitHasLocalChanges(filename string) (bool, error)

func HistoryCommand

func HistoryCommand(c *cli.Context) error

func InitCommand

func InitCommand(c *cli.Context) error

func InstallCodegen added in v0.0.25

func InstallCodegen(c *cli.Context, dir string) error

func PrintMigration

func PrintMigration(migration spec.BranchMigration, withNoColor bool)

func PullCommand

func PullCommand(c *cli.Context) error

func RunHook added in v0.0.25

func RunHook(dir string, hook string) error

func ShellCommand

func ShellCommand(c *cli.Context) error

Types

type BasicResponse added in v0.0.27

type BasicResponse interface {
	StatusCode() int
	Status() string
}

type ErrorUnauthorized

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

func (ErrorUnauthorized) Error

func (e ErrorUnauthorized) Error() string

type SettingsFile

type SettingsFile struct {
	SchemaFileFormat string            `json:"schemaFileFormat"`
	DBName           string            `json:"dbName"`
	WorkspaceID      string            `json:"workspaceID"`
	Hooks            map[string]string `json:"hooks"`
}

func ReadSettings

func ReadSettings(dir string) (*SettingsFile, error)

type Workspace added in v0.0.26

type Workspace struct {
	ID   spec.WorkspaceID `json:"id"`
	Name string           `json:"name"`
	Slug string           `json:"slug"`
}

Jump to

Keyboard shortcuts

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