querycmd

package
v0.2.10-metrics Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the Query command

func Print

func Print(configBytes []byte)

Print prints the given config bytes, which is a marshalled JSON array of ConfigKV

Types

type OutputFormat

type OutputFormat uint8

OutputFormat specifies the format for printing data

const (
	// RawOutput displays the raw data
	RawOutput OutputFormat = iota

	// FormattedOutput formats the data into a human readable format
	FormattedOutput
)

func AsOutputFormat

func AsOutputFormat(f string) OutputFormat

AsOutputFormat returns the OutputFormat given an Output Format string

func (OutputFormat) String

func (f OutputFormat) String() string

Jump to

Keyboard shortcuts

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