pull/146/head
Chip Senkbeil 2 years ago
parent eebf20731b
commit 7743cfe7d5
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -350,6 +350,7 @@ impl ManagerSubcommand {
.capabilities()
.await
.context("Failed to get list of capabilities")?;
debug!("Got capabilities: {caps:?}");
#[derive(Tabled)]
struct CapabilityRow {
@ -380,6 +381,7 @@ impl ManagerSubcommand {
.info(id)
.await
.context("Failed to get info about connection")?;
debug!("Got info: {info:?}");
#[derive(Tabled)]
struct InfoRow {
@ -418,6 +420,7 @@ impl ManagerSubcommand {
.list()
.await
.context("Failed to get list of connections")?;
debug!("Got list: {list:?}");
debug!("Looking up selected connection");
let selected = Cache::read_from_disk_or_default(cache)
@ -425,6 +428,7 @@ impl ManagerSubcommand {
.context("Failed to look up selected connection")?
.data
.selected;
debug!("Using selected: {selected}");
#[derive(Tabled)]
struct ListRow {
@ -461,6 +465,7 @@ impl ManagerSubcommand {
.kill(id)
.await
.with_context(|| format!("Failed to kill connection to server {id}"))?;
debug!("Connection killed");
Ok(())
}
Self::Shutdown { network } => {

@ -3,6 +3,7 @@ use crate::{
paths::{global as global_paths, user as user_paths},
};
use anyhow::Context;
use distant_core::net::common::authentication::Verifier;
use distant_core::net::manager::{Config as ManagerConfig, ManagerServer};
use distant_core::net::server::ServerRef;
use log::*;
@ -37,6 +38,7 @@ impl Manager {
}
let boxed_ref = ManagerServer::new(self.config)
.verifier(Verifier::none())
.start(
UnixSocketListener::bind_with_permissions(socket_path, self.access.into_mode())
.await?,

Loading…
Cancel
Save