(f *cmdutil.Factory)
| 8 | ) |
| 9 | |
| 10 | func NewCmdPreview(f *cmdutil.Factory) *cobra.Command { |
| 11 | cmd := &cobra.Command{ |
| 12 | Use: "preview <command>", |
| 13 | Short: "Execute previews for gh features", |
| 14 | Long: heredoc.Doc(` |
| 15 | Preview commands are for testing, demonstrative, and development purposes only. |
| 16 | They should be considered unstable and can change at any time. |
| 17 | `), |
| 18 | } |
| 19 | |
| 20 | cmdutil.DisableAuthCheck(cmd) |
| 21 | |
| 22 | cmd.AddCommand(cmdPrompter.NewCmdPrompter(f, nil)) |
| 23 | |
| 24 | return cmd |
| 25 | } |
nothing calls this directly
no test coverage detected