MDL-51632 tool_generator: Print URL of the generated course
authorMark Nielsen <mark@moodlerooms.com>
Thu, 1 Oct 2015 18:03:12 +0000 (11:03 -0700)
committerMark Nielsen <mark@moodlerooms.com>
Thu, 1 Oct 2015 18:03:12 +0000 (11:03 -0700)
admin/tool/generator/cli/maketestcourse.php

index a8bc76e..cbd43e1 100644 (file)
@@ -113,3 +113,7 @@ $backend = new tool_generator_course_backend(
     FORMAT_HTML
 );
 $id = $backend->make();
     FORMAT_HTML
 );
 $id = $backend->make();
+
+if (empty($options['quiet'])) {
+    echo PHP_EOL.'Generated course: '.course_get_url($id).PHP_EOL;
+}