diff --git a/shell.nix b/shell.nix index 6d48b6f..d823e74 100644 --- a/shell.nix +++ b/shell.nix @@ -16,11 +16,13 @@ pkgs.mkShell { sqliteman pkg-config alsa-lib + rust-analyzer ]; RUST_BACKTRACE = 1; - shellHook = '' - alias gust=/home/nixolas/Documents/Gust/target/debug/gust + shellHook = '' + cargo install --locked bacon + export PATH=$HOME/.cargo/bin:$PATH ''; } diff --git a/src/main.rs b/src/main.rs index 88f18db..3dfb4a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,4 @@ -use clap::{Parser, ValueEnum}; -use message_types::{itemtag_to_partial, PartialTag, ServerResponse, UIRequest}; -use serde_json; -use table_print::Table; +ut::Table; use termsize; use tungstenite::{connect, Message}; use url::Url; @@ -57,7 +54,7 @@ struct CliArgs { fn main() { let cli = CliArgs::parse(); - let (mut socket, _resp) = connect( + let (mut socket, _resp) = connect( Url::parse(format!("ws://{}:{}", cli.hostname.unwrap(), cli.port.unwrap()).as_str()) .unwrap(), ) @@ -222,4 +219,4 @@ impl ServerResponse { fn test_partialtag() { let partial_tag = parse_to_partialtag("title".to_string(), "Rocker Song".to_string()).unwrap(); assert_eq!(partial_tag.title, Some("Rocker Song".to_string())) -} \ No newline at end of file +}