Add godoc comments to exported symbols in pkg/cmd/run
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
34d1fb3e63
commit
844963ca61
14 changed files with 122 additions and 17 deletions
|
|
@ -17,6 +17,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// RerunOptions holds the options for the rerun command.
|
||||
type RerunOptions struct {
|
||||
HttpClient func() (*http.Client, error)
|
||||
IO *iostreams.IOStreams
|
||||
|
|
@ -31,6 +32,7 @@ type RerunOptions struct {
|
|||
Prompt bool
|
||||
}
|
||||
|
||||
// NewCmdRerun creates the rerun command.
|
||||
func NewCmdRerun(f *cmdutil.Factory, runF func(*RerunOptions) error) *cobra.Command {
|
||||
opts := &RerunOptions{
|
||||
IO: f.IOStreams,
|
||||
|
|
@ -228,6 +230,7 @@ func rerunJob(client *api.Client, repo ghrepo.Interface, job *shared.Job, debug
|
|||
return nil
|
||||
}
|
||||
|
||||
// RerunPayload is the request body for rerunning a workflow.
|
||||
type RerunPayload struct {
|
||||
Debug bool `json:"enable_debug_logging"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue