MCPcopy Create free account
hub / github.com/cli/cli / NewCmdPreview

Function NewCmdPreview

pkg/cmd/preview/preview.go:10–25  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

8)
9
10func 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}

Callers

nothing calls this directly

Calls 1

DisableAuthCheckFunction · 0.92

Tested by

no test coverage detected