Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "man [COMMAND]", Short: "Manual pages for Akita commands.", SilenceUsage: true, Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { command := "" if len(args) > 0 { command = args[0] } if rawFlag || command != "" { var targetPage *page for _, p := range allPages { if p.command == command { targetPage = &p break } } if targetPage == nil { return errors.Errorf("unknown command %q", command) } else if rawFlag { fmt.Println(targetPage.content) return nil } } if err := showInteractive(command); err != nil { return cmderr.AkitaErr{Err: err} } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.