mirror of
https://codeberg.org/Cyborus/forgejo-cli.git
synced 2024-11-10 12:09:33 +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?,
|
None => crate::readline("new key: ").await?,
|
||||||
};
|
};
|
||||||
if keys.hosts.get(&user).is_none() {
|
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 {
|
} else {
|
||||||
println!("key for {} already exists", host);
|
println!("key for {} already exists", host);
|
||||||
}
|
}
|
||||||
|
@ -56,4 +57,3 @@ impl AuthCommand {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ use url::Url;
|
||||||
mod keys;
|
mod keys;
|
||||||
use keys::*;
|
use keys::*;
|
||||||
|
|
||||||
mod repo;
|
|
||||||
mod auth;
|
mod auth;
|
||||||
|
mod repo;
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
pub struct App {
|
pub struct App {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use clap::Subcommand;
|
use clap::Subcommand;
|
||||||
use url::Url;
|
|
||||||
use forgejo_api::CreateRepoOption;
|
use forgejo_api::CreateRepoOption;
|
||||||
|
use url::Url;
|
||||||
|
|
||||||
#[derive(Subcommand, Clone, Debug)]
|
#[derive(Subcommand, Clone, Debug)]
|
||||||
pub enum RepoCommand {
|
pub enum RepoCommand {
|
||||||
|
|
Loading…
Reference in a new issue