Add content CLI
This commit is contained in:
1 parent
3da32a4a90
commit
661ee019e5
10 files changed
+387
No files matched your search
@@ -97,6 +97,23 @@ Copy `.env.example` to `.env` and fill in what you need. Every value is optional
|
||||
|
||||
Site content lives in `content/`.
|
||||
|
||||
### Content CLI
|
||||
|
||||
A small Python tool (standard library only) edits the playlist, shows and movies without touching the JSON by hand.
|
||||
|
||||
```bash
|
||||
bun run content music list --titles
|
||||
bun run content music add https://www.youtube.com/watch?v=VIDEO_ID
|
||||
bun run content music remove VIDEO_ID
|
||||
bun run content movie add tt0816692 --rating 10
|
||||
bun run content show add https://www.imdb.com/title/tt14688458/ --rating 10 --name "Silo"
|
||||
bun run content show rate Silo 9
|
||||
bun run content movie remove Interstellar
|
||||
bun run content show list
|
||||
```
|
||||
|
||||
Titles are looked up on OMDb with `OMDB_API_KEY` from `.env`; pass `--name` to skip the lookup. Run `bun run content --help` for every option.
|
||||
|
||||
| File | Holds |
|
||||
| --- | --- |
|
||||
| `profile.json` | Name, bio, socials, skills and photos |
|
||||
|
||||
Reference in new issue
Block a user