25 lines
460 B
D
25 lines
460 B
D
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;
|
|
}
|
|
}
|