Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20820

drush/wp-cli/cv - make behaviour more UNIX-y

    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:

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: