Skip to content

Commit

Permalink
Use blue color for subheadings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Aug 11, 2023
1 parent 3598592 commit 657000b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions cmd/broom/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ func addUsage() {
fmt.Fprintln(color.Output, "the specification, unless they are provided via options.")
fmt.Fprintln(color.Output, "")
fmt.Fprintln(color.Output, color.YellowString("Examples:"))
fmt.Fprintln(color.Output, " Single profile:")
fmt.Fprintln(color.Output, " ", color.BlueString("Single profile"))
fmt.Fprintln(color.Output, ` broom add api openapi.yaml`)
fmt.Fprintln(color.Output, "")
fmt.Fprintln(color.Output, " Single profile with Bearer auth via external command:")
fmt.Fprintln(color.Output, ` broom add api openapi.json --auth-cmd="sh get-token.sh" --auth-type=bearer`)
fmt.Fprintln(color.Output, "")
fmt.Fprintln(color.Output, " Single profile with Basic auth:")
fmt.Fprintln(color.Output, " ", color.BlueString("Single profile with Basic auth"))
fmt.Fprintln(color.Output, ` broom add api openapi.yaml --auth="myuser:mypass" --auth-type=basic`)
fmt.Fprintln(color.Output, "")
fmt.Fprintln(color.Output, " Multiple profiles with different API keys:")
fmt.Fprintln(color.Output, " ", color.BlueString("Single profile with Bearer auth via external command"))
fmt.Fprintln(color.Output, ` broom add api openapi.json --auth-cmd="sh get-token.sh" --auth-type=bearer`)
fmt.Fprintln(color.Output, "")
fmt.Fprintln(color.Output, " ", color.BlueString("Multiple profiles with different API keys"))
fmt.Fprintln(color.Output, ` broom add prod openapi.yaml --auth=PRODUCTION_KEY --auth-type=api-key`)
fmt.Fprintln(color.Output, ` broom add staging openapi.yaml --auth=STAGING_KEY --auth-type=api-key --server-url=htts://staging.my-api.io`)
fmt.Fprintln(color.Output, "")
Expand Down
2 changes: 1 addition & 1 deletion cmd/broom/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func profileUsage(profile string, serverURL string, ops broom.Operations) {
fmt.Fprintln(color.Output, color.YellowString("Operations:"))
w := tabwriter.NewWriter(color.Output, 0, 1, 4, ' ', 0)
for _, tag := range ops.Tags() {
fmt.Fprintf(w, "\t%v\t\t\n", tag)
fmt.Fprintf(w, "\t%v\t\t\n", color.BlueString(tag))
for _, op := range ops.ByTag(tag) {
fmt.Fprintf(w, "\t %v\t%v\n", color.GreenString(op.ID), op.SummaryWithFlags())
}
Expand Down

0 comments on commit 657000b

Please sign in to comment.