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
Click to show internal directories.
Click to hide internal directories.