Details
-
Type: Task
-
Status: Open
-
Priority: Trivial
-
Resolution: Unresolved
-
Affects Version/s: 4.7.20
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:Developer Doc
-
Funding Source:Needs Funding
-
Verified?:No
Description
Currently, commands like Drush when executing cron generate output to stdout for each run.
drush civicrm-api -u 1 job.execute
drush @example.org -u civicrm.cron job.execute
drush -r /var/www/example.org -l https://example.org civicrm-api -u civicrm.cron job.execute
This "doesn't feel UNIX-y" to me, as I expect a successful job to make no output (unless the purpose of the CLI tool is to generate output). (Rationale: "Rule of Silence", from ESR's "17 Unix Rules".)
It would be good to have drush/wp-cli/cv deliver meaningful exit codes and have a means of operation which makes them silent on success.
Background discussion: