Documentation
ยถ
Overview ยถ
Command icons8-dl downloads icons from the Icons8 website API.
main.go is the composition root: it holds the build-time version and the production Icons8 endpoints, and hands off to the cli inbound adapter. All program logic lives under internal/ in the domain, application, and infrastructure layers.
Directories
ยถ
| Path | Synopsis |
|---|---|
|
internal
|
|
|
application
Package application holds the use-cases (Assemble, DownloadQueue, List, Search) and the ports they depend on (Catalog, Downloader, Workspace).
|
Package application holds the use-cases (Assemble, DownloadQueue, List, Search) and the ports they depend on (Catalog, Downloader, Workspace). |
|
domain
Package domain holds the Icons8 entity types and the pure business rules that operate on them.
|
Package domain holds the Icons8 entity types and the pure business rules that operate on them. |
|
infrastructure/api
Package api adapts the Icons8 HTTP endpoints and the on-disk response cache.
|
Package api adapts the Icons8 HTTP endpoints and the on-disk response cache. |
|
infrastructure/cli
Package cli parses command-line arguments, dispatches commands, and wires the infrastructure adapters into the application use-cases.
|
Package cli parses command-line arguments, dispatches commands, and wires the infrastructure adapters into the application use-cases. |
|
infrastructure/fs
Package fs adapts the local filesystem for downloads.
|
Package fs adapts the local filesystem for downloads. |
|
infrastructure/render
Package render presents results on the terminal: a download progress bar, an indeterminate fetch throbber, and the style-pack / failure tables.
|
Package render presents results on the terminal: a download progress bar, an indeterminate fetch throbber, and the style-pack / failure tables. |
Click to show internal directories.
Click to hide internal directories.