Deleted ScpProtocol; use FileTransferProtocol

This commit is contained in:
ChristianVisintin
2020-11-24 22:33:35 +01:00
parent 067f5e710a
commit 39bd881468
5 changed files with 59 additions and 43 deletions

View File

@@ -42,7 +42,7 @@ mod utils;
// namespaces
use activity_manager::{ActivityManager, NextActivity};
use ui::activities::auth_activity::ScpProtocol;
use filetransfer::FileTransferProtocol;
/// ### print_usage
///
@@ -60,7 +60,7 @@ fn main() {
let mut port: u16 = 22; // Default port
let mut username: Option<String> = None; // Default username
let password: Option<String>; // Default password
let mut protocol: ScpProtocol = ScpProtocol::Sftp; // Default protocol
let mut protocol: FileTransferProtocol = FileTransferProtocol::Sftp; // Default protocol
let mut ticks: Duration = Duration::from_micros(50);
//Process options
// FIXME: there is no way to provide password from CLI atm