added bacon

This commit is contained in:
Nickiel12 2023-03-08 17:38:07 -08:00
parent 817b9af1f7
commit c1d8cc4b80
2 changed files with 7 additions and 8 deletions

View file

@ -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
''; '';
} }

View file

@ -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(),
) )