cmd

package
v0.0.0-...-7085fbe Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 17 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "jaq",
	Short: "A scriptable, command-line tool for working with JSON endpoints",
	Long: `A scriptable, command-line tool for working with JSON endpoints.
Pipe data from one endpoint to another while utilizing data from the first to
run multiple commands against the next. Pairs well with a tool like jq which
can filter and pretty print json.

Use a configuration file to automatically handle the most common fields when
routinely working with an API such as domain/subdomain and authorization.

Examples:

> jaq get /posts
> jaq get /posts | jq -c .[] | jaq delete /posts/${1.id} --dry-run
> jaq get /posts | jq -c .[0:3] | jaq get /comments -q postId=${1.id}
`,

	SilenceUsage: true,

	SilenceErrors: true,
}

RootCmdrepresents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute is called by main.main(). It only needs to happen once.

func ResetSettings

func ResetSettings()

func ResetSettingsHTTPVerbs

func ResetSettingsHTTPVerbs()

Types

This section is empty.

Jump to

Keyboard shortcuts

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