commands

package
v1.0.0-alpha40 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

Overview

Package commands contains the definition for all the commands present in Hasura CLI.

Index

Constants

View Source
const (
	XHasuraAdminSecret = "X-Hasura-Admin-Secret"
	XHasuraAccessKey   = "X-Hasura-Access-Key"
)
View Source
const HasuraASCIIText = `
    __
   / /_   ____ _ _____ __  __ _____ ____ _
  / __ \ / __ ` + "`" + `// ___// / / // ___// __ ` + "`" + `/
 / / / // /_/ /(__  )/ /_/ // /   / /_/ /
/_/ /_/ \__,_//____/ \__,_//_/    \__,_/

`

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the command and returns the error

func ExecuteMigration

func ExecuteMigration(cmd string, t *migrate.Migrate, stepOrVersion int64) error

ExecuteMigration runs the actual migration

func NewCompletionCmd

func NewCompletionCmd(ec *cli.ExecutionContext) *cobra.Command

NewCompletionCmd return the completion command.

func NewConsoleCmd

func NewConsoleCmd(ec *cli.ExecutionContext) *cobra.Command

NewConsoleCmd returns the console command

func NewDocsCmd

func NewDocsCmd(ec *cli.ExecutionContext) *cobra.Command

NewDocsCmd returns the docs command

func NewHelpCmd

func NewHelpCmd(ec *cli.ExecutionContext) *cobra.Command

NewHelpCmd returns the help command

func NewInitCmd

func NewInitCmd(ec *cli.ExecutionContext) *cobra.Command

NewInitCmd is the definition for init command

func NewMetadataCmd

func NewMetadataCmd(ec *cli.ExecutionContext) *cobra.Command

func NewMigrateCmd

func NewMigrateCmd(ec *cli.ExecutionContext) *cobra.Command

NewMigrateCmd returns the migrate command

func NewUpdateCLICmd

func NewUpdateCLICmd(ec *cli.ExecutionContext) *cobra.Command

NewUpdateCLICmd returns the update-cli command.

func NewVersionCmd

func NewVersionCmd(ec *cli.ExecutionContext) *cobra.Command

NewVersionCmd returns the version command

func PrintStatus

func PrintStatus(status *migrate.Status) *bytes.Buffer

Types

This section is empty.

Jump to

Keyboard shortcuts

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