mattn / bsky

A cli application for bluesky social
297 stars 33 forks source link

The follow subcommand should be able to read a list of accounts from a YAML file #30

Closed jlewi closed 2 weeks ago

jlewi commented 2 weeks ago
jlewi commented 2 weeks ago

@mattn PTAL.

mattn commented 2 weeks ago

You can do it with xargs and yq?

$ cat follows.txt | xargs bsky follow
$ curl -s https://raw.githubusercontent.com/jlewi/bskylists/refs/heads/main/aiengineering.yaml | yq .accounts[].handle | xargs bsky follow
jlewi commented 2 weeks ago

That works but is slightly more inconvenient; if for no other reason than you need yq installed.

jlewi commented 2 weeks ago

Totally understand if you don't want to accept the PR; I can always fork.