update hooks functions

This commit is contained in:
2026-09-10 23:05:56 +03:00
parent 055ebb7703
commit d2c2daf352
9 changed files with 86 additions and 17 deletions

View File

@ -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");