We've been playing with Moosh, and found that the output is quite "chatty" and it makes is less easy to chain commands together.
For instance
moosh category-create -r "SomeCategory"
generates a new category and outputs Created category MytestCat with id: 78.
Very nice, but not chainable.
We were hoping to be able to do something like
moosh course-restore backup.mbz `moosh category-create -r "SomeCategory"`
This would attempt to do a course restore to a category, which is created if it doesn't exist.
This was then tied to doing a pile of restores:
for backupfile in $BACKUPSDIR/*.mbz; do
moosh course-restore $backupfile `moosh category-create -r "SomeCategory"`
done
An option to just return the ID of a created or appropriate identifier for an existing item would help!
We've been playing with Moosh, and found that the output is quite "chatty" and it makes is less easy to chain commands together.
For instance
generates a new category and outputs
Created category MytestCat with id: 78.Very nice, but not chainable.
We were hoping to be able to do something like
This would attempt to do a course restore to a category, which is created if it doesn't exist.
This was then tied to doing a pile of restores:
An option to just return the ID of a created or appropriate identifier for an existing item would help!