MCPcopy Create free account
hub / github.com/github/gh-aw / reportAddWorkflowStart

Function reportAddWorkflowStart

pkg/cli/add_command.go:379–389  ·  view source on GitHub ↗
(workflowSpec *WorkflowSpec, sourceContent []byte, opts AddOptions)

Source from the content-addressed store, hash-verified

377}
378
379func reportAddWorkflowStart(workflowSpec *WorkflowSpec, sourceContent []byte, opts AddOptions) {
380 addLog.Printf("Adding workflow: name=%s, content_size=%d bytes", workflowSpec.WorkflowName, len(sourceContent))
381 if !opts.Verbose {
382 return
383 }
384 fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Adding workflow: "+workflowSpec.String()))
385 if opts.Force {
386 fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Force flag enabled: will overwrite existing files"))
387 }
388 fmt.Fprintln(os.Stderr, console.FormatSuccessMessage(fmt.Sprintf("Using pre-fetched workflow content (%d bytes)", len(sourceContent))))
389}
390
391func validateWorkflowDestination(githubWorkflowsDir, workflowName string, opts AddOptions) (bool, error) {
392 existingFile := filepath.Join(githubWorkflowsDir, workflowName+".md")

Callers 1

addWorkflowWithTrackingFunction · 0.85

Calls 4

FormatInfoMessageFunction · 0.92
FormatSuccessMessageFunction · 0.92
PrintfMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected