fzf-make 0.68.0

A command line tool that executes commands using fuzzy finder with preview window for make, pnpm, yarn, just, and task.
1
2
3
4
5
6
use anyhow::{Result, anyhow};
use std::{fs::read_to_string, path::Path};

pub fn path_to_content(path: &Path) -> Result<String> {
    read_to_string(path).map_err(|e| anyhow!(e))
}