fzf-make 0.15.0

A command line tool that executes make target using fuzzy finder with preview window.
1
2
3
4
5
6
7
use anyhow::{anyhow, Result};

use std::{fs::read_to_string, path::PathBuf};

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