Add fetch command#27
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new bolt fetch CLI command to download bolt packages from a remote “package store” into the local package store, with support for multiple fetch backends (built-in and user plugins) and accompanying documentation.
Changes:
- Introduces
bolt fetchcommand wiring, CLI option parsing, and global config keys for package store settings. - Implements fetch backends:
basic(direct file download) andrdk(session/cookie-based login + download), plus a plugin mechanism. - Adds user documentation for
bolt fetchand updates existing docs/README/help text.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| bolt/src/globalConfig.cjs | Adds parsing for packageStoreURL, packageStoreType, packageStoreUser from ~/.bolt/config.json. |
| bolt/src/fetch.cjs | New core implementation for fetching, downloading, auth prompting helpers, and plugin loading. |
| bolt/src/fetch-basic.cjs | New “basic” fetch backend (no auth; static file server). |
| bolt/src/fetch-rdk.cjs | New “rdk” backend (login + cookie reuse; re-auth on expiry). |
| bolt/src/bolt.cjs | Registers fetch command and adds help text. |
| bolt/README.md | Documents bolt fetch usage and adds packageStoreURL to global config docs. |
| bolt/docs/local-package-store.md | Notes local package store is used by bolt fetch. |
| bolt/docs/fetch.md | New detailed documentation for bolt fetch and custom fetch plugins. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3e31ca2 to
b18afff
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b18afff to
977fd25
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
977fd25 to
94251d4
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
94251d4 to
c693c9c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ref: #RDKEAPPRT-689
c693c9c to
26a5ba9
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ref: #RDKEAPPRT-689