cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatasourceCmd = &cobra.Command{
	Use:   "datasource",
	Short: "Work with and manage data sources",
	Long: `Work with and manage data sources.

	Currently only a rough validation is implemented.`,
	Run: func(cmd *cobra.Command, args []string) {
		log.Fatal("Cannot be run without subcommand, like validate!")
	},
}
View Source
var (
	RootCmd = &cobra.Command{
		Use:   "forge",
		Short: "This is the StormForger command line client!",
		Long:  `This is the StormForger command line client!`,
	}
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewClient

func NewClient() *api.Client

func RunValidate

func RunValidate(cmd *cobra.Command, args []string)

Types

type CsvError

type CsvError struct {
	Row     int
	Column  int
	Message string
}

Jump to

Keyboard shortcuts

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