commands

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(env *kernel.Env) *cli.Command

Exec executes an sql statement

func Import

func Import(env *kernel.Env) *cli.Command

Import implements the import sub command

func RegisterCommand

func RegisterCommand(c CommandFunc)

RegisterCommand registers the specified command via its factory

Types

type CommandFunc

type CommandFunc func(*kernel.Env) *cli.Command

CommandFunc a command handler factory

func GetRegisteredCommands

func GetRegisteredCommands() []CommandFunc

GetRegisteredCommands return a list with the registered command factories

Jump to

Keyboard shortcuts

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