[WIP] paths
This commit is contained in:
parent
8b158108bb
commit
3bc5cc959a
20 changed files with 817 additions and 241 deletions
|
|
@ -23,7 +23,16 @@ async fn main() {
|
|||
*state.reload.write().await = false;
|
||||
*state.shutdown.write().await = false;
|
||||
|
||||
let ipc = IpcClient::connect("/run/iota/iota.sock")
|
||||
let socket = match iota_paths::IotaPaths::resolve(iota_paths::Scope::User)
|
||||
.expect("resolve Iota user paths")
|
||||
.ipc_endpoint
|
||||
{
|
||||
iota_paths::IpcEndpoint::UnixSocket(path) => path,
|
||||
iota_paths::IpcEndpoint::WindowsPipe(_) => {
|
||||
panic!("Windows IPC client transport is not implemented yet")
|
||||
}
|
||||
};
|
||||
let ipc = IpcClient::connect(socket)
|
||||
.await
|
||||
.expect("iota-daemon must be running before starting iota-core");
|
||||
let session = start_tui(ipc).expect("interactive terminal initialization failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue