Skip to content

Commit

Permalink
fix pr
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Nov 30, 2024
1 parent 8f12662 commit efec565
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/carapace/cmd/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ import (
)

var schemaCmd = &cobra.Command{
Use: "--codegen spec",
Use: "--schema",
Short: "json schema for spec files",
Run: func(cmd *cobra.Command, args []string) {
if schema, err := spec.Schema(); err != nil {
fmt.Fprintln(cmd.ErrOrStderr(), err.Error()) // TODO fail / exit 1 ?
} else {
fmt.Fprintln(cmd.OutOrStdout(), schema)
}
fmt.Fprintln(cmd.OutOrStdout(), spec.Schema())
},
}

Expand Down

0 comments on commit efec565

Please sign in to comment.