summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-13 02:10:23 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-13 02:10:23 +0100
commit87bb4d78406ec5f8a09db105728a299cfe726610 (patch)
treeaae85c49591485970f536a24d6453f91b1b18b56
parentadd git remote selection flag (diff)
downloadforgejo-cli-87bb4d78406ec5f8a09db105728a299cfe726610.tar.xz
forgejo-cli-87bb4d78406ec5f8a09db105728a299cfe726610.zip
format
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 1445706..ad62b50 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,7 +12,7 @@ mod repo;
#[derive(Parser, Debug)]
pub struct App {
- #[clap(long, short='R')]
+ #[clap(long, short = 'R')]
remote: Option<String>,
#[clap(subcommand)]
command: Command,
@@ -44,7 +44,9 @@ async fn main() -> eyre::Result<()> {
let host = host.map(|host| Url::parse(&host)).transpose()?;
let url = match host {
Some(url) => url,
- None => repo::RepoInfo::get_current(args.remote.as_deref())?.url().clone(),
+ None => repo::RepoInfo::get_current(args.remote.as_deref())?
+ .url()
+ .clone(),
};
let name = keys.get_login(&url)?.username();
eprintln!("currently signed in to {name}@{url}");