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")