cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryCmd = &cobra.Command{
	Use:   "query",
	Short: "query Athena",
	Run: func(cmd *cobra.Command, args []string) {

		if q.OutputBucket == outputBucketDefault {
			q.OutputBucket = fmt.Sprintf("aws-athena-query-results-%s-%s", lib.AccountID(), lib.Region())
		}

		file, err := q.Execute()
		if err != nil {
			log.Fatal(err)
		}

		defer lib.CleanCache(file.Name())

		err = lib.OutputData(q.Format, q.JMESPath, file)

		if err != nil {
			log.Fatal(err)
		}
	},
}

QueryCmd ...

Functions

func Import

func Import(rootCmd *cobra.Command)

Import is used to import all of these package's commands

Types

This section is empty.

Jump to

Keyboard shortcuts

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