MCPcopy Create free account
hub / github.com/cncf/presentations / init

Function init

cmd/verify/verify.go:22–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func 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
37func run(cmd *cobra.Command, argv []string) error {
38 if err := verify.Verify(args.file); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected