gogcli/internal/cmd/completion.go
2025-12-31 17:24:31 +01:00

17 lines
358 B
Go

package cmd
import (
"context"
"fmt"
"os"
)
type CompletionCmd struct {
Shell string `arg:"" name:"shell" help:"Shell (bash|zsh|fish|powershell)" enum:"bash,zsh,fish,powershell"`
}
func (c *CompletionCmd) Run(_ context.Context) error {
_, err := fmt.Fprintf(os.Stdout, "Completion scripts not supported in this build (%s).\n", c.Shell)
return err
}