Skip to content

Commit

Permalink
spec: added schema header
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 31, 2024
1 parent 829d008 commit d0ba05a
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 d0ba05a

Please sign in to comment.