()
| 20 | } |
| 21 | |
| 22 | func init() { |
| 23 | flags := Cmd.Flags() |
| 24 | |
| 25 | flags.StringVar( |
| 26 | &args.file, |
| 27 | "file", |
| 28 | "presentations.yaml", |
| 29 | "File to validate.", |
| 30 | ) |
| 31 | |
| 32 | Cmd.RegisterFlagCompletionFunc("output-format", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 33 | return []string{"yml", "yaml"}, cobra.ShellCompDirectiveDefault |
| 34 | }) |
| 35 | } |
| 36 | |
| 37 | func run(cmd *cobra.Command, argv []string) error { |
| 38 | if err := verify.Verify(args.file); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected