Skip to content

Commit

Permalink
Rename slimit to alfad
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Meyer committed Apr 30, 2024
1 parent 45c97f8 commit 51a6ddd
Show file tree
Hide file tree
Showing 29 changed files with 40 additions and 40 deletions.
60 changes: 30 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "slimit"
name = "alfad"
version = "0.1.0"
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pub fn read_config() -> Vec<TaskConfig> {
// let span = info_span!("Parsing task files");
// let _span = span.enter();
let dir = if cfg!(profile = "release") {
"/etc/slimit/slimit.d"
"/etc/alfad/alfad.d"
} else {
"test/slimit.d"
"test/alfad.d"
};

let dir_reader = match read_dir(dir) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ async fn wait_for_commands(context: ContextMap<'static>) {
}

async fn create_pipe() -> Result<BufReader<File>> {
// let path = "/var/run/slimit";
let path = "test/slimit-pipe";
// let path = "/var/run/alfad";
let path = "test/alfad-pipe";
remove_file(path)?;
mkfifo(path, stat::Mode::S_IRWXU)?;
let file = smol::fs::OpenOptions::new().read(true).open(path).await?;
Expand Down
4 changes: 2 additions & 2 deletions ctl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "slimit-ctl"
name = "alfad-ctl"
version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = "1.0.82"
clap = "4.5.4"
slimit = {path= "../core"}
alfad = {path= "../core"}
4 changes: 2 additions & 2 deletions ctl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ use std::{fs::OpenOptions, io::Write};
use anyhow::{Context, Result};
use clap::Parser;

use slimit::action::Action;
use alfad::action::Action;


fn main() -> Result<()> {
let action = Action::parse();
OpenOptions::new()
.write(true)
.open("test/slimit-pipe").context("slimit pipe not found")?
.open("test/alfad-pipe").context("alfad pipe not found")?
.write_all(action.to_string().as_bytes())?;
Ok(())
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion validate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
slimit = { version = "0.1.0", path = "../core" }
alfad = { version = "0.1.0", path = "../core" }

0 comments on commit 51a6ddd

Please sign in to comment.