1
0
This commit is contained in:
syui 2024-02-09 14:09:13 +09:00
parent 0b185d0539
commit dbe10d4f94
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 8 additions and 1 deletions

View File

@ -45,6 +45,10 @@ $ ai r -s syu.is
$ ai n $ ai n
``` ```
```
$ ai n | jq .
```
### bot ### bot
``` ```

View File

@ -36,7 +36,7 @@ fn main() {
.command( .command(
Command::new("token") Command::new("token")
.alias("t") .alias("t")
.description("handle\n\t\t\t$ ai t syui.bsky.social -p password") .description("handle\n\t\t\t$ ai t yui.syui.ai -p password\n\t\t\t$ ai t yui.syui.ai -p password -s bsky.social")
.action(c_token) .action(c_token)
.flag( .flag(
Flag::new("password", FlagType::String) Flag::new("password", FlagType::String)
@ -52,6 +52,7 @@ fn main() {
.command( .command(
Command::new("refresh") Command::new("refresh")
.alias("r") .alias("r")
.description("refresh\n\t\t\t$ ai r\n\t\t\t$ ai r -s bsky.social")
.action(c_refresh) .action(c_refresh)
.flag( .flag(
Flag::new("server", FlagType::String) Flag::new("server", FlagType::String)
@ -62,11 +63,13 @@ fn main() {
.command( .command(
Command::new("notify") Command::new("notify")
.alias("n") .alias("n")
.description("notify\n\t\t\t$ ai n")
.action(c_notify), .action(c_notify),
) )
.command( .command(
Command::new("bot") Command::new("bot")
.alias("b") .alias("b")
.description("bot\n\t\t\t$ ai b\n\t\t\t$ ai b -s bsky.social")
.action(c_bot) .action(c_bot)
.flag( .flag(
Flag::new("server", FlagType::String) Flag::new("server", FlagType::String)