Moodle Plugins directory: command line manager | Moodle.org
command line manager
Administration tools ::: tool_cmdlinetools
Maintained by
Céline Perves
admin/tool/cmdlinetools : Command line tools for moodle technical administration
cmdlinetools is a command line tools integrated in moodle that enable execute moodle administrative task threw php command lines
Latest release:
17 sites
2 downloads
3 fans
Current versions available: 1
cmdlinetools is a command line tools integrated in moodle that enables execute moodle administrative task threw php command lines
See readme file for a full list of features
We created this plugin in order to have an easier administrative approach of our modle platforms.
Mixed with bash commands that executes that php command lines, it enables us to install, upgrade and administrate various moodle platforms at same time following a list of bash commands.
We would like to thanks David Mudrak that give us the good advice to transform a simple set of admin cli command line lists into a amdin tool plugin and also Moosh utility that inspired this plugin and sometimes inspired us to find dificult solution for some scripts
Useful links
Contributors
Céline Perves (Lead maintainer)
Please login to view contributors details and/or to contact them
https://integration.moodle.org/job/Precheck%20remote%20branch/28130/artifact/work/smurf.html
Please see some of my comments:
* First, it would be nice if you could fix the errors and warnings raised by the Plugins bot. It is encouraged to follow Moodle’s coding style as outlined in:
http://docs.moodle.org/dev/Coding_style and
http://docs.moodle.org/dev/Coding
The code checker plugin can be quite helpful in fine tuning your code and can be found at: https://moodle.org/plugins/view.php?plugin=local_codechecker You may wish to consider using that tool to further improve your plugin.
* I also encountered some issues right away when I tried your plugin and I have reported the ones I found on the plugin's Github page. Perhaps there are others from the other commands, so it would be nice if you could also verify that all the commands are working as expected.
* About the lang file, perhaps it would be more easily maintainable if the language strings are ordered alphabetically by their string identifiers.
Thanks!
Thanks Céline for sharing this block with the community, and thanks Jun for providing the approval review. It looks like a good improvement over the previous version which was not wrapped as a proper Moodle plugin yet - well done on that!
Two of the issues reported by Jun to your github tracker sound like little yet apparent usability issues and it will be better to have them fixed. The unit test failure may indicate some more serious problem and is definitely worth checking. And yes, overall following the Moodle coding style will definitely help with further reviews and collaboration on the plugin. Thanks in advance for paying attention to it.
For now I am marking the plugin as needing more work. Looking forward the updated version with fixes!
Thank's for local_code_checker plugin, I'm gonna work on that
try to do this in a second time
You'll have to call the command with php :
php /moodleworkspace/admin/tool/cmdlinetools/cli/cmdline_manager.php command [options]
type :
php /moodleworkspace/admin/tool/cmdlinetools/cli/cmdline_manager.php --help will retuirn list of commands available
I did'nt know moosh has a possibililty to be wrapped into a plugin.
With that simple tool called by bash commands I can apply commands to various moodle calling the tool with each path involved.
If I had time I would study deeper moosh and try to integrate/mix it with cmdlinetools