mirror of
https://codeberg.org/Mo8it/How_To_Linux.git
synced 2025-03-31 19:13:55 +00:00
17 lines
558 B
Rust
17 lines
558 B
Rust
use collective_score_client::{
|
|
check::{Check, IntoTask, Task},
|
|
validator::{file::FileContent, string_content::StringContent},
|
|
};
|
|
|
|
pub fn task() -> Task {
|
|
Check::builder()
|
|
.description("Checking you disabled the Fish greeting")
|
|
.validator(FileContent {
|
|
file: dirs::home_dir()
|
|
.expect("Failed to get the home directory!")
|
|
.join(".config/fish/config.fish"),
|
|
expected: StringContent::Part("set -g fish_greeting"),
|
|
})
|
|
.build()
|
|
.into_task("fish-config")
|
|
}
|