MingleCLI
MingleCLI is a command line interface to the Mingle API.
Configuring
mingle_cli.rb configure --username=[username] --password=[password] --hostname=[hostname] --project=[project]
Usage
mingle_cli.rb card [number] [format]
mingle_cli.rb cards [filter] [format]
mingle_cli.rb comment [number] [comment]
mingle_cli.rb comments [number]
Argument Definitions:
- Number: The card number.
- Format: The format of the result of the command. Formats can contain property names nested in brackets which will then be replaced with the value of the property.
- Comment: The message to leave in the comment.
- Filter: Mingle's MQL syntax.
Examples
Configuring:
mingle_cli.rb configure --username=hsimpson --password=doh1 --hostname=power_plant.local --project=radioactive_donut
Getting card information:
mingle_cli.rb card 19480 "Status: [status] Pair: [dev pair]"
Status: In Development Pair: Homer/Bart
Querying for cards:
mingle_cli.rb cards 'status is ["in development"]' 'Number: [number] Pair: [dev pair]'
Number: 19480 Pair: Homer/Bart
Number: 19495 Pair: Marge/Lisa
Adding a card comment:
mingle_cli.rb comment 19480 'Doh!'
Viewing card comments:
mingle_cli.rb comments 19480
2014-01-30 12:57:46 -0500 Homer Simpson: Doh!