From db360fa922e4847c6195ccf0afcd2ce681310364 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sun, 2 Nov 2025 08:34:28 -0500 Subject: [PATCH] chore(noninteractive): improve 'crush run' examples --- internal/cmd/run.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/cmd/run.go b/internal/cmd/run.go index c4eed450ab0878c196d33f1f5510ac02a4d02aa4..d3748d0f327d0db0913384100a5f885eb19a8c2e 100644 --- a/internal/cmd/run.go +++ b/internal/cmd/run.go @@ -19,10 +19,13 @@ The prompt can be provided as arguments or piped from stdin.`, crush run Explain the use of context in Go # Pipe input from stdin -echo "What is this code doing?" | crush run +curl https://charm.land | crush run "Summarize this website" -# Run with quiet mode (no spinner) -crush run -q "Generate a README for this project" +# Read from a file +crush run "What is this code doing?" <<< prrr.go + +# Run in quiet mode (hide the spinner) +crush run --quiet "Generate a README for this project" `, RunE: func(cmd *cobra.Command, args []string) error { quiet, _ := cmd.Flags().GetBool("quiet")