Skip to content

Commit

Permalink
Remove external rofi dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Dec 22, 2023
1 parent 54ab668 commit 645ad86
Show file tree
Hide file tree
Showing 6 changed files with 993 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: rustc --version
- name: Build
run: cargo rustc --lib --verbose -- -D warnings
| cargo rustc --bin main --verbose -- -D warnings
| cargo rustc --bin marcador --verbose -- -D warnings

clippy:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ reqwest = { version = "0.11", features = ["blocking", "json"]}
clap = { version = "4", features = ["derive"]}
copypasta = "0.10"
tokio = "1.35"
rofi = { git = "ssh://git@github.com/joajfreitas/rofi-rs.git"}
#rofi = { git = "ssh://git@github.com/joajfreitas/rofi-rs.git"}
thiserror = "1.0.19"
2 changes: 1 addition & 1 deletion src/bin/marcador.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::{CommandFactory, Parser, Subcommand};
use copypasta::{ClipboardContext, ClipboardProvider};

use marcador::models::Bookmarks;
use marcador::rofi;
use marcador::server::server;
use marcador::{BookmarkProxy, RemoteProxy};

Expand Down Expand Up @@ -47,7 +48,6 @@ fn rofi_delete(proxy: &RemoteProxy, index: usize, books: Vec<Bookmarks>) -> Resu
fn rofi_open(url: &str) -> Result<(), String> {
open::with(url, "firefox").map_err(|_| "Failed to open url")?;
Ok(())

}

fn command_rofi(host: String) -> Result<(), String> {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod models;
pub mod rofi;
pub mod schema;
pub mod server;

Expand Down
Loading

0 comments on commit 645ad86

Please sign in to comment.