curl

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurlCmd = &cobra.Command{
	Use:   "curl",
	Short: "Do requests with curl",
	Long: `Do requests with curl
Requests are piped to curl with credentials attached and paths expanded.
Pattern: we curl [curl options...] <url>
Use "curl --help" to see curl usage options.
`,
	Example: `  we curl /projects
  we curl /plans/user
  we curl https://api.wedeploy.com/projects`,
	RunE:               (&curlRunner{}).run,
	Hidden:             true,
	DisableFlagParsing: true,
}

CurlCmd do curl requests using the user credential

View Source
var DisableCmd = &cobra.Command{
	Use:   "disable",
	Short: "Disable curl commands",
	RunE:  disableRun,
	Args:  cobra.NoArgs,
}

DisableCmd for disabling using "we curl"

View Source
var EnableCmd = &cobra.Command{
	Use:   "enable",
	Short: "Enable curl commands",
	RunE:  enableRun,
	Args:  cobra.NoArgs,
}

EnableCmd for enabling using "we curl"

Functions

This section is empty.

Types

type UnsafeURLError

type UnsafeURLError struct {
	// contains filtered or unexported fields
}

UnsafeURLError is used when a URL is dangerous to add on the curl command

func (UnsafeURLError) Error

func (u UnsafeURLError) Error() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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