mirror of
https://codeberg.org/Cyborus/forgejo-cli.git
synced 2024-11-23 18:31:46 +01:00
fmt
This commit is contained in:
parent
1a7f0de260
commit
66dd7096e4
3 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,8 @@ impl AuthCommand {
|
|||
None => crate::readline("new key: ").await?,
|
||||
};
|
||||
if keys.hosts.get(&user).is_none() {
|
||||
keys.hosts.insert(host, crate::keys::LoginInfo::new(user, key));
|
||||
keys.hosts
|
||||
.insert(host, crate::keys::LoginInfo::new(user, key));
|
||||
} else {
|
||||
println!("key for {} already exists", host);
|
||||
}
|
||||
|
@ -56,4 +57,3 @@ impl AuthCommand {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ use url::Url;
|
|||
mod keys;
|
||||
use keys::*;
|
||||
|
||||
mod repo;
|
||||
mod auth;
|
||||
mod repo;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
pub struct App {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use clap::Subcommand;
|
||||
use url::Url;
|
||||
use forgejo_api::CreateRepoOption;
|
||||
use url::Url;
|
||||
|
||||
#[derive(Subcommand, Clone, Debug)]
|
||||
pub enum RepoCommand {
|
||||
|
|
Loading…
Reference in a new issue