Move to enum-based commands

This commit is contained in:
Rasmus Larsen
2019-05-20 22:15:12 +02:00
parent 4b4a027c3c
commit 1671db14c1
15 changed files with 343 additions and 317 deletions

View File

@@ -46,6 +46,7 @@ use librespot::core::authentication::Credentials;
mod album;
mod artist;
mod authentication;
mod command;
mod commands;
mod config;
mod events;
@@ -232,6 +233,8 @@ fn main() {
});
});
/*
TODO: Write parser for commands
{
let ev = event_manager.clone();
let cmd_manager = cmd_manager.clone();
@@ -244,6 +247,7 @@ fn main() {
ev.trigger();
});
}
*/
cursive.add_fullscreen_layer(layout.with_id("main"));