update hooks functions
This commit is contained in:
@ -6,6 +6,10 @@ use std::fs;
|
||||
use std::io::{self, BufRead};
|
||||
use std::path::Path;
|
||||
|
||||
pub fn get_general_hook() -> io::Result<String> {
|
||||
let cfg_path = &crate::commands::get_aeropkg_etc().join("aeropkg.md");
|
||||
extract_block(cfg_path, &format!("``` sh *** hook ***"), "```")
|
||||
}
|
||||
|
||||
pub fn get_stage_hook(stage: &str) -> io::Result<String> {
|
||||
let cfg_path = &crate::commands::get_aeropkg_etc().join("aeropkg.md");
|
||||
|
||||
Reference in New Issue
Block a user