Open kyu08 opened 3 weeks ago
pub enum AppState<'a> {
SelectTarget(SelectTargetState<'a>),
ExecuteTarget(Option<String>),
ShouldQuit,
}
pub enum AppState<'a> {
SelectTarget(SelectTargetState<'a>),
ExecuteTarget(Option<Command>), // Change to Command
ShouldQuit,
}
pub trait Command {
fn print(&self); // Print command to run like `make run` before execute it.
fn execute(&self);
}
makefile.to_command(target)
.
Requirements
This executes "npm run test". Are you sure?
.TODO(Before this enhancement)
make
,npm
,pnpm
etc, and refine the architecture. See: https://github.com/kyu08/fzf-make/issues/315#issuecomment-2421096242.