Skip to content

Commit

Permalink
Merge pull request #988 from rsteube/spec-schema
Browse files Browse the repository at this point in the history
spec: added schema header
  • Loading branch information
rsteube authored Jan 31, 2024
2 parents 916608d + d0ba05a commit 72a649f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"gopkg.in/yaml.v3"
)

// Snippet generates the spec file.
// Spec generates the spec file.
func Spec(cmd *cobra.Command) string {
m, _ := yaml.Marshal(command(cmd))
return string(m)
return "# yaml-language-server: $schema=https://carapace.sh/schemas/command.json\n" + string(m)
}

func command(cmd *cobra.Command) Command {
Expand Down

0 comments on commit 72a649f

Please sign in to comment.