(f *cmdutil.Factory)
| 8 | ) |
| 9 | |
| 10 | func NewCmdActions(f *cmdutil.Factory) *cobra.Command { |
| 11 | cs := f.IOStreams.ColorScheme() |
| 12 | |
| 13 | cmd := &cobra.Command{ |
| 14 | Use: "actions", |
| 15 | Short: "Learn about working with GitHub Actions", |
| 16 | Long: actionsExplainer(cs), |
| 17 | Hidden: true, |
| 18 | } |
| 19 | |
| 20 | cmdutil.DisableAuthCheck(cmd) |
| 21 | |
| 22 | return cmd |
| 23 | } |
| 24 | |
| 25 | func actionsExplainer(cs *iostreams.ColorScheme) string { |
| 26 | header := cs.Bold("Welcome to GitHub Actions on the command line.") |
nothing calls this directly
no test coverage detected