galaxy-iuc / parsec

Access Galaxy at the speed of light with automatically generated BioBlend wrappers
Apache License 2.0
9 stars 9 forks source link

fix jq example #18

Closed manabuishii closed 7 years ago

manabuishii commented 7 years ago

More information.

Zsh environment needs single quote.

if no quote, my zsh ( using oh-my-zsh )

zsh: no matches found: .[0]

but not in zsh environment. works no single quote.

It's jq and users shell problem .

hexylena commented 7 years ago

@manabuishii ah interesting, hadn't heard of that plugin.

[hxr@leda:~/]$ echo $SHELL
/usr/bin/zsh
[hxr@leda:~/]$ parsec histories get_histories | jq .[0]
{
  "annotation": null,
  "url": "/galaxy/api/histories/e41da9a5d5127051",
  "purged": false,
  "model_class": "History",
  "published": false,
  "name": "Basespace auth test",
  "deleted": false,
  "id": "e41da9a5d5127051",
  "tags": []
}

Could I ask you to quote the entire jq string rather than just the portion after the .? I think this will look a bit cleaner/more obvious for people who don't use the terminal so much. I.e. '.[0]' rather than .'[0]'

hexylena commented 7 years ago

Thanks @manabuishii