Convert to TypeScript
- Renamed bring → bring.ts - Added TypeScript interfaces for type safety - Added tsconfig.json for TypeScript configuration - Updated package.json with TypeScript dependencies - Updated SKILL.md with TypeScript usage instructions - Added dist/ to .gitignore Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
df53e2f1ed
commit
557280eb0e
@@ -2,11 +2,21 @@
|
||||
|
||||
Manage your Bring! Shopping List via CLI using the unofficial Bring! API.
|
||||
|
||||
TypeScript implementation with full type safety.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install
|
||||
chmod +x bring
|
||||
chmod +x bring.ts
|
||||
```
|
||||
|
||||
Or to build and run as JavaScript:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run build
|
||||
node dist/bring.js
|
||||
```
|
||||
|
||||
## Configuration
|
||||
@@ -63,28 +73,33 @@ console.log(lists.lists); // Shows all lists with their UUIDs
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
bring add <item> [specification] # Add item to shopping list
|
||||
bring list # Show current items
|
||||
bring remove <item> # Remove item (mark as purchased)
|
||||
bring recent # Show recently purchased items
|
||||
./bring.ts add <item> [specification] # Add item to shopping list
|
||||
./bring.ts list # Show current items
|
||||
./bring.ts remove <item> # Remove item (mark as purchased)
|
||||
./bring.ts recent # Show recently purchased items
|
||||
```
|
||||
|
||||
Or using ts-node directly:
|
||||
```bash
|
||||
ts-node bring.ts add <item>
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Add items
|
||||
bring add Apples
|
||||
bring add Milk "1 Liter"
|
||||
bring add "Coffee Beans" "Fair Trade"
|
||||
./bring.ts add Apples
|
||||
./bring.ts add Milk "1 Liter"
|
||||
./bring.ts add "Coffee Beans" "Fair Trade"
|
||||
|
||||
# Show list
|
||||
bring list
|
||||
./bring.ts list
|
||||
|
||||
# Remove item (mark as bought)
|
||||
bring remove Apples
|
||||
./bring.ts remove Apples
|
||||
|
||||
# Show recently purchased items
|
||||
bring recent
|
||||
./bring.ts recent
|
||||
```
|
||||
|
||||
## Integration with AI Agents
|
||||
|
||||
Reference in New Issue
Block a user