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

package: Add autoload demo entrypoint #110

Open
shazow opened this issue Aug 6, 2024 · 2 comments
Open

package: Add autoload demo entrypoint #110

shazow opened this issue Aug 6, 2024 · 2 comments
Labels
good first issue Good for newcomers soon Planned, targeting a near-future release

Comments

@shazow
Copy link
Owner

shazow commented Aug 6, 2024

So people can do things like npx whatsabi --address 0xasdfasdf --rpc-url https://infura.alchemy

Most of the code already exists in examples/autoload.ts, just need to tweak the input and output handling.

(via @roninjin10)

@shazow shazow added good first issue Good for newcomers soon Planned, targeting a near-future release labels Aug 6, 2024
@roninjin10
Copy link
Contributor

2 brainstormy ideas

Record a gif automatically

When you make this you can automate making a gif of the cli pretty trivially using charmbracelet/vhs

Output ./examples/demo.gif
Type "npx whatsabi --address 0xasdfasdf --rpc-url"
# Pause for dramatic effect...
Sleep 50ms
Enter
Sleep 100ms

compose with cast

A use case people might like is using this whatsabi cli to pipe a result into a cast command?

@shazow
Copy link
Owner Author

shazow commented Aug 7, 2024

Good ideas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers soon Planned, targeting a near-future release
Projects
None yet
Development

No branches or pull requests

2 participants