Инициализация 0.1.0
This commit is contained in:
commit
abdc9d4cce
10 changed files with 158 additions and 0 deletions
23
source/app.d
Normal file
23
source/app.d
Normal file
|
@ -0,0 +1,23 @@
|
|||
import examples;
|
||||
import commandr;
|
||||
import core.stdc.stdlib : EXIT_SUCCESS;
|
||||
|
||||
private string programName = "d-examples";
|
||||
|
||||
int main(string[] args)
|
||||
{
|
||||
auto argumets = new Program(programName, examplesVersion)
|
||||
.add(new Command("shell", "Запуск команд в shell")
|
||||
.add(new Command("pipe", "Чтение выходных данных на примере ip"))
|
||||
.add(new Command("spinner", "Эмуляция статуса выполнения процесса"))
|
||||
)
|
||||
.parse(args);
|
||||
|
||||
argumets
|
||||
.on("shell", (shell) { shell
|
||||
.on("pipe", (pipe) { pipeShell(); })
|
||||
.on("spinner", (loading) { spinnerShell(); });
|
||||
});
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue