added bacon
This commit is contained in:
parent
817b9af1f7
commit
c1d8cc4b80
2 changed files with 7 additions and 8 deletions
|
@ -16,11 +16,13 @@ pkgs.mkShell {
|
||||||
sqliteman
|
sqliteman
|
||||||
pkg-config
|
pkg-config
|
||||||
alsa-lib
|
alsa-lib
|
||||||
|
rust-analyzer
|
||||||
];
|
];
|
||||||
|
|
||||||
RUST_BACKTRACE = 1;
|
RUST_BACKTRACE = 1;
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
alias gust=/home/nixolas/Documents/Gust/target/debug/gust
|
cargo install --locked bacon
|
||||||
|
export PATH=$HOME/.cargo/bin:$PATH
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
use clap::{Parser, ValueEnum};
|
ut::Table;
|
||||||
use message_types::{itemtag_to_partial, PartialTag, ServerResponse, UIRequest};
|
|
||||||
use serde_json;
|
|
||||||
use table_print::Table;
|
|
||||||
use termsize;
|
use termsize;
|
||||||
use tungstenite::{connect, Message};
|
use tungstenite::{connect, Message};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
@ -57,7 +54,7 @@ struct CliArgs {
|
||||||
fn main() {
|
fn main() {
|
||||||
let cli = CliArgs::parse();
|
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())
|
Url::parse(format!("ws://{}:{}", cli.hostname.unwrap(), cli.port.unwrap()).as_str())
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
)
|
)
|
||||||
|
@ -222,4 +219,4 @@ impl ServerResponse {
|
||||||
fn test_partialtag() {
|
fn test_partialtag() {
|
||||||
let partial_tag = parse_to_partialtag("title".to_string(), "Rocker Song".to_string()).unwrap();
|
let partial_tag = parse_to_partialtag("title".to_string(), "Rocker Song".to_string()).unwrap();
|
||||||
assert_eq!(partial_tag.title, Some("Rocker Song".to_string()))
|
assert_eq!(partial_tag.title, Some("Rocker Song".to_string()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue