ebag 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/cli/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,11 +27,12 @@ Notes:
|
|
|
27
27
|
- List-based search caches product details in `~/.config/ebag/cache.json` for up to 6 hours.
|
|
28
28
|
- Completed orders may be cached locally for faster access.
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Products
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
ebag search "lindt"
|
|
34
|
-
ebag search "lindt" --json
|
|
33
|
+
ebag product search "lindt"
|
|
34
|
+
ebag product search "lindt" --json
|
|
35
|
+
ebag product show 5128
|
|
35
36
|
```
|
|
36
37
|
|
|
37
38
|
## Delivery slots
|
package/dist/cli/index.js
CHANGED
|
@@ -189,7 +189,8 @@ async function main() {
|
|
|
189
189
|
process.stdout.write(`${(0, slots_1.formatSlotRange)(slot.start, slot.end)} (${(0, slots_1.formatLoadPercent)(slot.loadPercent)})\n`);
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
|
-
program
|
|
192
|
+
const product = program.command('product').description('Product operations');
|
|
193
|
+
product
|
|
193
194
|
.command('search')
|
|
194
195
|
.description('Search for products')
|
|
195
196
|
.argument('<query>', 'Search query')
|
|
@@ -209,8 +210,8 @@ async function main() {
|
|
|
209
210
|
(0, format_1.outputProducts)(result.results);
|
|
210
211
|
}
|
|
211
212
|
});
|
|
212
|
-
|
|
213
|
-
.command('
|
|
213
|
+
product
|
|
214
|
+
.command('show')
|
|
214
215
|
.description('Get product details by ID')
|
|
215
216
|
.argument('<productId>', 'Product ID')
|
|
216
217
|
.action(async (productId) => {
|