cmd

package
v0.0.0-...-ffd6c50 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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