Show HN: Confy – programmable TUI controls for almost any structured text(github.com)
github.com
Show HN: Confy – programmable TUI controls for almost any structured text
https://github.com/blackhole89/confy
0 comments
—
https://github.com/blackhole89/confy
—
//! bool $flag = true;
//! if($flag) {
printf("The flag is true!");
//! } else {
//-printf("The flag is false!");
//! }
and confy would expose a graphical interface to toggle "$flag" on or off, and comment/uncomment the appropriate line of text in the file, while also saving the updated initial value in the first line that defines $flag in the file.
Interaction is possible both via a curses-style terminal interface, and by scriptable getters/setters (like `confy filename.txt set variableName true` or `confy filename.txt get variableName`).