Skip to content
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

Separate creation and upload in the CLI #37

Open
kytta opened this issue Jan 20, 2025 · 0 comments
Open

Separate creation and upload in the CLI #37

kytta opened this issue Jan 20, 2025 · 0 comments

Comments

@kytta
Copy link

kytta commented Jan 20, 2025

First off, thanks for making smokeshow, it's a game changer for quick website previews and coverage reporting :)

I have the following use case which would be nice to have implemented in the smokeshow CLI:

  1. I create a smokeshow site and get its URL
  2. I build a static website with the URL as base
    • my SSG prefers having "full"-absolute (https://example.com/some/page) rather than "semi"-absolute (/some/page) URLs
  3. I then upload the built site to the already pre-defined URL

This is already achievable with direct API requests, but I really like the UX of uvx smokeshow upload, so it would be nice to add create as a possible subcommand. Here's how I imagine it:

$ uvx smokeshow create
{
    "message": "New site created successfully",
    "secret_key": "foobarbaz",
    "site_creation": "2025-01-20T07:38:05.048Z",
    "site_expiration": "2026-01-20T07:38:05.048Z",
    "sites_created_24h": 0,
    "upload_expiration": "2025-01-20T08:38:05.048Z",
    "url": "https://smokeshow.helpmanual.io/quux/"
}

$ uvx smokeshow upload --url "https://smokeshow.helpmanual.io/quux/" --secret-key "foobarbaz" my/cool/site
uploading 42 files...
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

No branches or pull requests

1 participant