Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
modules_weight
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
modules_weight
Commits
e3062a82
Commit
e3062a82
authored
11 months ago
by
Adrian Cid Almaguer
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3426260
by adriancid: Drush validate hooks not being executed
parent
8cee5350
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Issue #3340468 by Charchil Khandelwal, kkalashnikov, omkar_yewale, gayatri...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Commands/ModulesWeightCommands.php
+8
-7
8 additions, 7 deletions
src/Commands/ModulesWeightCommands.php
with
8 additions
and
7 deletions
src/Commands/ModulesWeightCommands.php
+
8
−
7
View file @
e3062a82
...
...
@@ -19,9 +19,6 @@ class ModulesWeightCommands extends DrushCommands {
const
MODULES_WEIGHT_GREEN_OUTPUT
=
"
\033
[1;32;40m
\033
[1m%s
\033
[0m"
;
const
MODULES_WEIGHT_RED_OUTPUT
=
"
\033
[31;40m
\033
[1m%s
\033
[0m"
;
// This is more readable.
const
REQ
=
InputOption
::
VALUE_REQUIRED
;
const
OPT
=
InputOption
::
VALUE_OPTIONAL
;
/**
...
...
@@ -88,11 +85,13 @@ class ModulesWeightCommands extends DrushCommands {
}
/**
* Validate for
drush:
mw-show-system-modules command.
* Validate for mw-show-system-modules command.
*
* @param \Consolidation\AnnotatedCommand\CommandData $commandData
* The command data.
*
* @hook validate mw-show-system-modules
*
* @throws \Exception
*/
public
function
validateWeightShowSystemModules
(
CommandData
$commandData
)
{
...
...
@@ -116,7 +115,7 @@ class ModulesWeightCommands extends DrushCommands {
* @param string $arg
* The status option (on, off).
*
* @command
drush:
mw-show-system-modules
* @command mw-show-system-modules
* @aliases mw-ssm
*/
public
function
moduleWeightShowSystemModules
(
string
$arg
)
{
...
...
@@ -159,11 +158,13 @@ class ModulesWeightCommands extends DrushCommands {
}
/**
* Validate for
drush:
mw-reorder.
* Validate for mw-reorder.
*
* @param \Consolidation\AnnotatedCommand\CommandData $commandData
* The commanda data.
*
* @hook validate mw-reorder
*
* @throws \Drush\Exceptions\UserAbortException
*/
public
function
validateModuleWeightReorder
(
CommandData
$commandData
)
{
...
...
@@ -202,7 +203,7 @@ class ModulesWeightCommands extends DrushCommands {
* @param array $options
* The options.
*
* @command
drush:
mw-reorder
* @command mw-reorder
* @aliases mw-r
* @options minus If the option is present the weight will be consider as a
* negative value. Read for more information
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment