ncurses-examples/source/app.d

25 lines
460 B
D
Raw Normal View History

2024-10-12 22:08:40 +00:00
module source.app;
import singlog;
import window;
import std.path;
void main(string[] args) {
log.output(log.output.file)
.program(baseName(args[0]))
.level(log.level.debugging)
.file("/tmp/" ~ baseName(args[0]) ~ ".log");
switch (baseName(args[0])) {
case "password":
password();
break;
case "menu":
menu();
break;
default:
break;
}
}