diff options
| author | sigoden <sigoden@gmail.com> | 2023-10-30 10:16:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-30 10:16:23 +0800 |
| commit | 651516d49a0aa1afe87fe90bd558d162b8877a6e (patch) | |
| tree | 318bab1b0212601a20cd2750d5f23dcd45df2642 /src/main.rs | |
| parent | b276dfedd2d13de9918b9b87a3d543e7b5eca95e (diff) | |
| download | aichat-651516d49a0aa1afe87fe90bd558d162b8877a6e.tar.gz | |
feat: show role info with `--role <name> --info` (#175)
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index f551e9c..6baf198 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,6 +81,8 @@ fn main() -> Result<()> { if cli.info { let info = if let Some(session) = &config.read().session { session.info()? + } else if let Some(role) = &config.read().role { + role.info()? } else { config.read().info()? }; |
