-
Notifications
You must be signed in to change notification settings - Fork 4
Fix CLI examples in quickstart to use correct exec syntax #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sprite exec passes arguments directly to the command without shell interpretation. Commands using shell operators (&&, |, >, &) need to be wrapped with `bash -c "..."`. Simple commands don't need quotes. Changes: - Add bash -c wrapper for commands with shell operators - Remove unnecessary quotes from simple commands - Fix auth mode reference from `sprite` to `default` Co-Authored-By: Claude Opus 4.5 <[email protected]>
CLI Documentation Generator
📚 Commands documented
|
Preview Deployment
Commit: |
Lighthouse Results
|
E2E Test Results✅ Tests success Ran against: https://pr-113-superfly-sprites-docs.fly.dev |
jbellerb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'm still thinking about if sprite exec should be changed to work like the old examples, but these always work even if that change happens.
src/content/docs/quickstart.mdx
Outdated
| ```bash | ||
| # Start a simple HTTP server on port 8080 | ||
| sprite exec "python -m http.server 8080 &" | ||
| sprite exec bash -c "python -m http.server 8080 &" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an example, it makes more sense to keep this in the foreground so the user can stop the server with Ctrl+C. Something like
sprite exec python -m http.server 8080There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I addressed your comment, ptal
Reviewer feedback: running in foreground is more intuitive for a quickstart. Split the code block so users get the URL first, then start the server. Co-Authored-By: Claude Opus 4.5 <[email protected]>
sprite exec passes arguments directly to the command without shell interpretation. Commands using shell operators (&&, |, >, &) need to be wrapped with
bash -c "...". Simple commands don't need quotes.Changes:
spritetodefault