INNER CODE UNIT · Go
init
cncf/presentations · cmd/verify/verify.go:22
func init() {
flags := Cmd.Flags()
flags.StringVar(
&args.file,
"file",
"presentations.yaml",
"File to validate.",
)
Cmd.RegisterFlagCompletionFunc("output-format", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"yml", "yaml"}, cobra.ShellCompDirectiveDefault
})
}
func run(cmd *cobra.Command, argv []string) error {
if err := verify.Verify(args.file); err != nil {
return err