From 23a14cc75f6530b2647fdc40836af5a3c60e2630 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Wed, 17 Dec 2025 21:19:50 -0800 Subject: [PATCH] feat: Add --skip-preflight flag to workflow create MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows bypassing preflight checks when needed (e.g., testing). Use with caution - preflight checks exist for safety. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cmd/bd/workflow.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/bd/workflow.go b/cmd/bd/workflow.go index 2b9f90e9..5b96d72c 100644 --- a/cmd/bd/workflow.go +++ b/cmd/bd/workflow.go @@ -265,8 +265,9 @@ Use 'bd ready' to see which tasks are ready to work on.`, return } - // Run preflight checks - if len(wf.Preflight) > 0 { + // Run preflight checks (unless skipped) + skipPreflight, _ := cmd.Flags().GetBool("skip-preflight") + if len(wf.Preflight) > 0 && !skipPreflight { green := color.New(color.FgGreen).SprintFunc() fmt.Println("Running preflight checks...") for _, check := range wf.Preflight { @@ -278,6 +279,9 @@ Use 'bd ready' to see which tasks are ready to work on.`, fmt.Printf(" %s %s\n", green("✓"), check.Message) } fmt.Println() + } else if skipPreflight && len(wf.Preflight) > 0 { + yellow := color.New(color.FgYellow).SprintFunc() + fmt.Printf("%s Skipping preflight checks\n\n", yellow("⚠")) } // Create the workflow instance @@ -562,6 +566,7 @@ status is not automatically changed - use 'bd close' to mark complete.`, func init() { workflowCreateCmd.Flags().StringSlice("var", []string{}, "Variable values (key=value, repeatable)") workflowCreateCmd.Flags().Bool("dry-run", false, "Show what would be created without creating") + workflowCreateCmd.Flags().Bool("skip-preflight", false, "Skip preflight checks (use with caution)") workflowCmd.AddCommand(workflowListCmd) workflowCmd.AddCommand(workflowShowCmd)