File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 34
34
<select id =" command" name =" command" class =" uk-select" placeholder =" Click here to select one of the available commands" >
35
35
<option value =" " >Select a command</option >
36
36
@foreach ($commands as $command )
37
- <optgroup label =" {{ $command -> getName ()} }" >
37
+ <optgroup label =" {{ $command -> getDescription ()} }" >
38
38
<option value =" {{ $command -> getName ()} }" {{ old (' command' , $task -> command ) == $command -> getName () ? ' selected' : ' ' } } >
39
- {{ $command -> getDescription ()} }
39
+ {{ $command -> getName ()} }
40
40
</option >
41
41
</optgroup >
42
42
@endforeach
Original file line number Diff line number Diff line change @@ -79,7 +79,12 @@ public static function getCommands()
79
79
}
80
80
81
81
return $ all_commands ->sortBy (function (Command $ command ) {
82
- return $ command ->getDescription ();
82
+ $ name = $ command ->getName ();
83
+ if (mb_strpos ($ name , ': ' ) === false ) {
84
+ $ name = ': ' .$ name ;
85
+ }
86
+
87
+ return $ name ;
83
88
});
84
89
}
85
90
You can’t perform that action at this time.
0 commit comments