Conditions | 1 |
Paths | 1 |
Total Lines | 49 |
Code Lines | 39 |
Lines | 0 |
Ratio | 0 % |
Tests | 42 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 15 | protected function configure() |
|
32 | 1 | { |
|
33 | 15 | $this |
|
34 | 15 | ->setName('alias') |
|
35 | 15 | ->setDescription('Handles bootstrap alias') |
|
36 | 15 | ->addArgument( |
|
37 | 15 | 'action', |
|
38 | 15 | InputArgument::OPTIONAL, |
|
39 | 15 | 'sub-command: ' . json_encode(self::$actions) |
|
40 | 15 | ) |
|
41 | 15 | ->addArgument( |
|
42 | 15 | 'name', |
|
43 | 15 | InputArgument::OPTIONAL, |
|
44 | 'alias name' |
||
45 | 15 | ) |
|
46 | 15 | ->addArgument( |
|
47 | 15 | 'bootstrap', |
|
48 | 15 | InputArgument::OPTIONAL, |
|
49 | 'package name' |
||
50 | 15 | ) |
|
51 | 15 | ->addArgument( |
|
52 | 15 | 'version', |
|
53 | 15 | InputArgument::OPTIONAL, |
|
54 | 'package version' |
||
55 | 15 | ) |
|
56 | 15 | ->addArgument( |
|
57 | 15 | 'description', |
|
58 | 15 | InputArgument::OPTIONAL, |
|
59 | 'bootstrap description' |
||
60 | 15 | ) |
|
61 | 15 | ->addArgument( |
|
62 | 15 | 'source', |
|
63 | 15 | InputArgument::OPTIONAL, |
|
64 | 'bootstrap source' |
||
65 | 15 | ) |
|
66 | 15 | ->addOption( |
|
67 | 15 | 'global', |
|
68 | 15 | 'g', |
|
69 | 15 | InputOption::VALUE_NONE, |
|
70 | 'Display global alias' |
||
71 | 15 | ) |
|
72 | 15 | ->addOption( |
|
73 | 15 | 'local', |
|
74 | 15 | 'l', |
|
75 | 15 | InputOption::VALUE_NONE, |
|
76 | 'Display local alias' |
||
77 | 15 | ) |
|
78 | 15 | ->setHelp('See the documentation for more info: https://github.com/Raphhh/samurai'); |
|
79 | 15 | } |
|
80 | |||
103 |