Documentation
¶
Overview ¶
Package commands contains the definition for all the commands present in Hasura CLI.
Index ¶
- Constants
- func Execute() error
- func ExecuteMigration(cmd string, t *migrate.Migrate, stepOrVersion int64) error
- func NewCompletionCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewConsoleCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewDocsCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewHelpCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewInitCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewMetadataCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewMigrateCmd(ec *cli.ExecutionContext) *cobra.Command
- func NewUpdateCLICmd(ec *cli.ExecutionContext) *cobra.Command
- func NewVersionCmd(ec *cli.ExecutionContext) *cobra.Command
Constants ¶
View Source
const ( XHasuraAdminSecret = "X-Hasura-Admin-Secret" XHasuraAccessKey = "X-Hasura-Access-Key" )
Variables ¶
This section is empty.
Functions ¶
func ExecuteMigration ¶
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.
Click to show internal directories.
Click to hide internal directories.