How samirkoirala/speedy-cli works
speedy-cli is a terminal toolkit whose commands route user requests to diagnostic or stock-data logic and display results as text or JSON. The graph follows the sampled entry point and command handlers into their internal packages, including the documented environment and fun commands whose handler implementations were not sampled. The speed-test and stock packages make the shown external HTTP requests; other unsampled wiring is omitted.
Main entry points: root.go Command root · speed.go Speed command · result.go Result model · ports.go Ports command
Components 19
CLI commands
- Program entry
main.go - Command root
cmd/root.go - Speed command
cmd/speed.go - Ports command
cmd/ports.go - Env command
cmd/env.go - Fun command
cmd/fun.go - Stocks command
cmd/stocks.go
Diagnostics
- Speed measurements
internal/speedtest/speed.go - Port inspection
internal/portcheck/ports.go - Environment validation
internal/envcheck/env.go - Terminal animation
internal/animation/anim.go
Stock updates
- Stock retrieval
internal/stocks/stocks.go
Shared output
- Result model
internal/common/result.go
Other components
- User
- Terminal
- Internet services
- NEPSE API
- Host processes
- Env file
Connections 26
- User → Program entry: starts
- Program entry → Command root: calls
- Command root → Speed command: dispatches
- Command root → Ports command: dispatches
- Command root → Env command: dispatches
- Command root → Fun command: dispatches
- Command root → Stocks command: dispatches
- Speed command → Speed measurements: runs tests
- Speed command → Terminal animation: starts spinner
- Ports command → Port inspection: checks ports
- Env command → Environment validation: validates vars
- Fun command → Terminal animation: uses animations
- Stocks command → Stock retrieval: gets movers
- Speed measurements → Internet services: HTTP tests
- Stock retrieval → NEPSE API: requests prices
- Port inspection → Host processes: inspects listeners
- Environment validation → Env file: loads file
- Speed measurements → Result model: builds result
- Port inspection → Result model: builds result
- Environment validation → Result model: builds result
- Stock retrieval → Result model: builds result
- Speed command → Terminal: prints output
- Ports command → Terminal: prints output
- Env command → Terminal: prints output
- Fun command → Terminal: shows animation
- Stocks command → Terminal: prints output