-
Notifications
You must be signed in to change notification settings - Fork 0
/
cm
executable file
·43 lines (32 loc) · 1.28 KB
/
cm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/php
<?php
require 'vendor/autoload.php';
use Symfony\Component\Console\Application;
use Wsl\CourseManager\Commands\ChangeCurrentProjectCommand;
use Wsl\CourseManager\Commands\CreateProjectCommand;
use Wsl\CourseManager\Commands\ListAllProjectsCommand;
use Wsl\CourseManager\Commands\ListAllCoursesCommand;
use Wsl\CourseManager\Commands\RemoveProjectCommand;
use Wsl\CourseManager\Commands\ShowCurrentProjetCommand;
use Wsl\CourseManager\Commands\UninstallCommand;
use Wsl\CourseManager\Commands\CreateCourseCommand;
use Wsl\CourseManager\Commands\PublishCourseCommand;
use Wsl\CourseManager\Config;
$app = new Application('Course manager', Config::COURSE_MANAGER_VERSION);
//Register commands
/**
* Gestion des projets, du programme.
*/
$app->add(new ShowCurrentProjetCommand('show:current-project'));
$app->add(new ListAllProjectsCommand('show:projects'));
$app->add(new ChangeCurrentProjectCommand('change:current-project'));
$app->add(new CreateProjectCommand('add:project'));
$app->add(new RemoveProjectCommand('remove:project'));
$app->add(new UninstallCommand('uninstall'));
/**
* Gestion des cours d'un projet
*/
$app->add(new CreateCourseCommand('add:course'));
$app->add(new ListAllCoursesCommand('show:courses'));
$app->add(new PublishCourseCommand('publish:course'));
$app->run();