NewCmdArtifact returns the gh issue artifact command group, which is in preview. It inherits -R from gh issue. telemetry records --attach use, as in the other commands that take it.
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
| 19 | // preview. It inherits -R from gh issue. telemetry records --attach use, as |
| 20 | // in the other commands that take it. |
| 21 | func NewCmdArtifact(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder) *cobra.Command { |
| 22 | cmd := &cobra.Command{ |
| 23 | Use: "artifact <command>", |
| 24 | Short: "Work with issue artifacts (preview)", |
| 25 | Long: heredoc.Docf(` |
| 26 | Working with issue artifacts in the GitHub CLI is in preview and subject to change without notice. |
| 27 | |
| 28 | Issue artifacts are Markdown documents, HTML documents and links attached to an issue. |
| 29 | They are not GitHub Actions artifacts; to download those, use %[1]sgh run download%[1]s. |
| 30 | `, "`"), |
| 31 | } |
| 32 | |
| 33 | cmd.AddCommand(cmdList.NewCmdList(f, nil)) |
| 34 | cmd.AddCommand(cmdView.NewCmdView(f, nil)) |
| 35 | cmd.AddCommand(cmdCreate.NewCmdCreate(f, telemetry, nil)) |
| 36 | cmd.AddCommand(cmdEdit.NewCmdEdit(f, telemetry, nil)) |
| 37 | cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil)) |
| 38 | cmd.AddCommand(cmdDownload.NewCmdDownload(f, nil)) |
| 39 | |
| 40 | return cmd |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected