devhindo / x

post tweets from terminal
https://x-blush.vercel.app
MIT License
27 stars 2 forks source link

multiple accounts feature #23

Open devhindo opened 5 months ago

devhindo commented 5 months ago

x auth -a elon -- continue authentication x auth -a yoyo -- continue authentication x switch -a elon >> post from elon x switch -a yoyo >> post from yoyo

adriangalilea commented 4 months ago

Suggesting the following UX, once auth is complete in both accounts:

+ -l                          lists logged in accounts
+ -d "username"               set's an account as default
$ x -l

⦿ elon          69420 followers
o yoyo          228 followers

⦿ - default account
o - available account (-a [username])
+ x "text"                              post a tweet with the default account
+ x -a "username" "text"                post a tweet with the specified account 
-  -t "text"                            post a tweet

Also consider:

- auth                     start authorizing your X account
+ -i (--log-in)       log-in to your X account

- auth --url            get auth url if it didn't open browser after running 'x auth'
+ --url                    get auth url if it didn't open browser after running 'x -i'

- auth -v                 verify authorization after running 'x auth'
+ -s                        (status) ... check sessions tatus and perhaps more info ...

-  -c                      clear authorized account
+ -o                        log-out to your X account