Skip to content

Conversation

@kcmartin
Copy link
Collaborator

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

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]>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

CLI Documentation Generator

Metric Value
CLI Version 0.0.1
Commands Generated 24
Tests ✅ 0/0 passed
📚 Commands documented
  • sprite login
  • sprite logout
  • sprite org auth
  • sprite org list
  • sprite org logout
  • sprite org keyring disable
  • sprite org keyring enable
  • sprite auth setup
  • sprite create
  • sprite use
  • sprite list
  • sprite destroy
  • sprite exec
  • sprite console
  • sprite checkpoint create
  • sprite checkpoint list
  • sprite checkpoint info
  • sprite checkpoint delete
  • sprite restore
  • sprite proxy
  • sprite url
  • sprite url update
  • sprite api
  • sprite upgrade

@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

Preview Deployment

Name URL
Preview https://pr-113-superfly-sprites-docs.fly.dev

Commit: dc99978

@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

Lighthouse Results

URL Performance Accessibility Best Practices SEO
/ 🟠 88 🟢 100 🟢 96 🟢 100
/quickstart/ 🟢 99 🟢 100 🟢 100 🟢 100

@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

E2E Test Results

✅ Tests success

Ran against: https://pr-113-superfly-sprites-docs.fly.dev

@kcmartin kcmartin requested a review from jbellerb January 26, 2026 17:16
Copy link
Contributor

@jbellerb jbellerb left a 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.

```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 &"
Copy link
Contributor

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 8080

Copy link
Collaborator Author

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]>
@kcmartin kcmartin merged commit 62771c9 into main Jan 26, 2026
5 checks passed
@kcmartin kcmartin deleted the fix/quickstart-cli-examples branch January 26, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants