INNER CODE UNIT · Go

blocked

cli/cli · .github/skills/cli-exercise/tool/internal/preflight/main.go:126

func blocked(message string) report {
	return report{SchemaVersion: 1, Status: "blocked", Issues: []issue{{Item: "preflight", Detail: message}}}
}

// Main checks selected prerequisites without installing or modifying dependencies.
func Main(ctx context.Context, skillRoot string, args []string, streams cliutil.Streams) int {
	options, err := parseOptions(args)
	if errors.Is(err, flag.ErrHelp) {
		_, err = fmt.Fprintln(streams.Out, "Usage: cli-exercise --skill-root PATH preflight check --output FILE [options]")
		if err == nil {
			return 0
		}
	}
	code := 2
	if err == nil {
		code, err = run(ctx, skillRoot, options, streams, newService)
	}
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…