Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions internal/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ import (
type App struct {
URL *url.URL

AWSSigv4 *aws.Config
Basic *vars.KeyVal
Bearer string
Color printer.Color
Data io.Reader
DryRun bool
Edit bool
Form []vars.KeyVal
Headers []vars.KeyVal
Help bool
HTTP client.HTTPVersion
IgnoreSatus bool
Insecure bool
JSON bool
Method string
Multipart []vars.KeyVal
NoEncode bool
NoFormat bool
NoPager bool
Output string
Proxy *url.URL
QueryParams []vars.KeyVal
Silent bool
Timeout time.Duration
Update bool
Verbose int
Version bool
XML bool
AWSSigv4 *aws.Config
Basic *vars.KeyVal
Bearer string
Color printer.Color
Data io.Reader
DryRun bool
Edit bool
Form []vars.KeyVal
Headers []vars.KeyVal
Help bool
HTTP client.HTTPVersion
IgnoreStatus bool
Insecure bool
JSON bool
Method string
Multipart []vars.KeyVal
NoEncode bool
NoFormat bool
NoPager bool
Output string
Proxy *url.URL
QueryParams []vars.KeyVal
Silent bool
Timeout time.Duration
Update bool
Verbose int
Version bool
XML bool
}

func NewApp() *App {
Expand Down Expand Up @@ -321,10 +321,10 @@ func (a *App) CLI() *CLI {
Description: "Exit code unaffected by HTTP status",
Default: "",
IsSet: func() bool {
return a.IgnoreSatus
return a.IgnoreStatus
},
Fn: func(value string) error {
a.IgnoreSatus = true
a.IgnoreStatus = true
return nil
},
},
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
DryRun: app.DryRun,
Edit: app.Edit,
HTTP: app.HTTP,
IgnoreStatus: app.IgnoreSatus,
IgnoreStatus: app.IgnoreStatus,
Insecure: app.Insecure,
NoEncode: app.NoEncode,
NoFormat: app.NoFormat,
Expand Down
Loading