Added a comment at the beginning to remain consistent with other shells.

This commit is contained in:
Jack Wright 2024-12-01 20:05:18 -08:00
parent ddb39920b4
commit 470ca0a628
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import (
func (c *Command) GenNushellCompletion(w io.Writer, includeDesc bool) error { func (c *Command) GenNushellCompletion(w io.Writer, includeDesc bool) error {
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
WriteStringAndCheck(buf, "# nushell completion -*- shell-script -*- \n")
WriteStringAndCheck(buf, fmt.Sprintf(` WriteStringAndCheck(buf, fmt.Sprintf(`
let cobra_completer = {|spans| let cobra_completer = {|spans|
let ShellCompDirectiveError = %[1]d let ShellCompDirectiveError = %[1]d