feat: Add name default and manual configuration

This commit is contained in:
quexeky
2026-01-26 09:06:48 +11:00
parent 820c1b06f9
commit a72cac7259
9 changed files with 123 additions and 70 deletions
+4 -3
View File
@@ -18,12 +18,13 @@ async fn main() -> anyhow::Result<()> {
let cli = Cli::parse();
let mut config = Config::read();
match &cli.command {
match cli.command {
Commands::Connect { name, option } => {
manage_configuration(&mut config, name, option).await?
}
Commands::Upload(info) => {
upload::interface::upload(info, config).await?;
Commands::Upload { info, name } => {
let info = info.interactive_configure();
upload::interface::upload(&info, config, &name).await?;
}
};