From 05c535e5ba56d6de23ce6b6c0c73c6051580f56b Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Mon, 20 Jul 2015 12:02:33 -0400 Subject: [PATCH 1/2] PM-3047 "Change the help text for many..." SOLVED > Code Isuue: 0017679: Change the help text for many "processmaker" commands > Solution: Se cambia el help de mansajes de processmaker por los nuevos mensajes sugeridos. --- workflow/engine/bin/tasks/cliFlushCache.php | 2 + workflow/engine/bin/tasks/cliHotfix.php | 2 +- workflow/engine/bin/tasks/cliMafe.php | 7 ++- workflow/engine/bin/tasks/cliPlugins.php | 6 ++ workflow/engine/bin/tasks/cliRake.php | 5 +- workflow/engine/bin/tasks/cliUpgrade.php | 21 ++++--- workflow/engine/bin/tasks/cliWorkspaces.php | 68 +++++++++++---------- workflow/engine/classes/class.cli.php | 14 +++-- 8 files changed, 72 insertions(+), 53 deletions(-) diff --git a/workflow/engine/bin/tasks/cliFlushCache.php b/workflow/engine/bin/tasks/cliFlushCache.php index 543b68932..f69ca51bd 100644 --- a/workflow/engine/bin/tasks/cliFlushCache.php +++ b/workflow/engine/bin/tasks/cliFlushCache.php @@ -28,6 +28,8 @@ G::LoadSystem("g"); CLI::taskName('flush-cache'); CLI::taskDescription(<< 0 ) { $taskName = $args[0]; } else { $taskName = $args; } if (! $taskName) { - echo "usage: $scriptName [options] [args]\n"; - echo "Type '$scriptName help ' for help on a specific task\n"; - echo "\nAvailable tasks:\n"; + echo "usage: processmaker [options] [args]\n"; + echo " If using Linux/UNIX, prepend './' to specify the directory: " . $scriptName . " [options] [args]\n"; + echo "Type 'processmaker help ' for help on a specific task."; + echo "\n\nAvailable tasks:\n"; $tasks = array (); ksort( self::$tasks ); foreach (self::$tasks as $name => $data) { @@ -180,13 +181,16 @@ class CLI } $valid_args[] = $arg; } + + $nameHotfixFile = ($taskName == "hotfix-install")? "HOTFIX-FILE" : ""; //lsl + $valid_args = join( " ", $valid_args ); $description = explode( "\n", self::$tasks[$taskName]['description'] ); $taskDescription = trim( array_shift( $description ) ); $description = trim( implode( "\n", $description ) ); $message = <<< EOT $taskName: {$taskDescription} -Usage: $scriptName $taskName $valid_args +Usage: processmaker $taskName $nameHotfixFile $valid_args $description From 8f9005b7265c104ff9cc9ee782297775d39e4d4e Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Mon, 20 Jul 2015 12:06:24 -0400 Subject: [PATCH 2/2] PM-3047 "Change the help text for many..." SOLVED > Code Isuue: 0017679: Change the help text for many "processmaker" commands > Solution: Se cambia el help de mansajes de processmaker por los nuevos mensajes sugeridos. --- workflow/engine/classes/class.cli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/classes/class.cli.php b/workflow/engine/classes/class.cli.php index 84ea196a7..9d75ca6f7 100755 --- a/workflow/engine/classes/class.cli.php +++ b/workflow/engine/classes/class.cli.php @@ -182,7 +182,7 @@ class CLI $valid_args[] = $arg; } - $nameHotfixFile = ($taskName == "hotfix-install")? "HOTFIX-FILE" : ""; //lsl + $nameHotfixFile = ($taskName == "hotfix-install")? "HOTFIX-FILE" : ""; $valid_args = join( " ", $valid_args ); $description = explode( "\n", self::$tasks[$taskName]['description'] );