MCPcopy
hub / github.com/cli/cli / actionsExplainer

Function actionsExplainer

pkg/cmd/actions/actions.go:25–61  ·  view source on GitHub ↗
(cs *iostreams.ColorScheme)

Source from the content-addressed store, hash-verified

23}
24
25func actionsExplainer(cs *iostreams.ColorScheme) string {
26 header := cs.Bold("Welcome to GitHub Actions on the command line.")
27 runHeader := cs.Bold("Interacting with workflow runs")
28 workflowHeader := cs.Bold("Interacting with workflow files")
29 cacheHeader := cs.Bold("Interacting with the GitHub Actions cache")
30
31 return heredoc.Docf(`
32 %[2]s
33
34 GitHub CLI integrates with GitHub Actions to help you manage runs and workflows.
35
36 %[3]s
37 gh run list: List recent workflow runs
38 gh run view: View details for a workflow run or one of its jobs
39 gh run watch: Watch a workflow run while it executes
40 gh run rerun: Rerun a failed workflow run
41 gh run download: Download artifacts generated by runs
42
43 To see more help, run %[1]sgh help run <subcommand>%[1]s
44
45 %[4]s
46 gh workflow list: List workflow files in your repository
47 gh workflow view: View details for a workflow file
48 gh workflow enable: Enable a workflow file
49 gh workflow disable: Disable a workflow file
50 gh workflow run: Trigger a workflow_dispatch run for a workflow file
51
52 To see more help, run %[1]sgh help workflow <subcommand>%[1]s
53
54 %[5]s
55 gh cache list: List all the caches saved in GitHub Actions for a repository
56 gh cache delete: Delete one or all saved caches in GitHub Actions for a repository
57
58 To see more help, run %[1]sgh help cache <subcommand>%[1]s
59
60 `, "`", header, runHeader, workflowHeader, cacheHeader)
61}

Callers 1

NewCmdActionsFunction · 0.85

Calls 1

BoldMethod · 0.80

Tested by

no test coverage detected