Skip to content

Identifier output "only" option #513

@mhughes2k

Description

@mhughes2k

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions