Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77449

Add support for a generic CLI wrapper

XMLWordPrintable

    • MOODLE_403_STABLE

      At the moment, all CLI tasks in Moodle implement their own CLI script, but this is far from ideal. Often we end up with features for one component or another, placed into admin/cli.

      As an example, we have admin/cli/backup.php which lives in the core_admin subsystem, but belongs to core_backup.

      As an alternative to this, we should create a generic CLI script for Moodle which finds CLI tasks in a relevant namespace, and executes them.

      Symfony has a very good CLI component which behave in this fashion, as does Django, and other products.

      We could consider writing the wrapper as a separate globally-installed composer project for example, or put it into admin/cli/run.php.

      There will, of course, be some scripts which must remain.

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.