moosh icon indicating copy to clipboard operation
moosh copied to clipboard

category-delete not showing/working

Open mwithheld opened this issue 7 years ago • 2 comments

  • moosh version: 0.25 Tested with fresh checkout from git And with freshly unzipped 'wget https://github.com/tmuras/moosh/archive/master.zip' $ git status On branch master Your branch is up-to-date with 'origin/master'.

  • moodle version: 3.1.8

    • database: Oracle 12.x
  • php version: 5.6.25

  • operating system: RedHat6

Actual behaviour

$ moosh category-delete 13113

  • moosh shows help output, no category-delete command shows
  • Moosh/Commands/Moodle30/Category/CategoryDelete.php is present
  • Other commands run fine
  • Have restarted PHP-FPM and Apache

Expected behaviour

  • should start deleting stuff

Steps to reproduce

as above

mwithheld avatar Nov 09 '17 17:11 mwithheld

it seems the documentation is preceeding the coding ... i.e. no code written yet for category-delete as far as i can tell

brunov25 avatar Jan 07 '18 19:01 brunov25

Hmm..I wrote this and did a pull request #201, which was merged into master. Not sure what happened after that.

Code exists in Moosh/Command/Moodle30/Category/CategoryDelete.php - not sure why it's not listed as a valid option. Help, @tmuras?

As an aside, if this can be made to work, #154 can be closed.

martygilbert avatar Jun 14 '18 14:06 martygilbert