commands

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 39 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"
)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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