kristopolous / TickTick

JSON in your Bash scripts
http://9ol.es/TheEmperorsNewClothes.html
Other
579 stars 55 forks source link

Script ignores arguments and variables passed to script #7

Closed natecavanaugh closed 12 years ago

natecavanaugh commented 12 years ago

Hi there, I'm trying to pass arguments to my script using ticktick. The arguments are understood before I source the file in my script, but all arguments and variables are forgotten after the sourcing of the file.

Even passing them like:

. ticktick.sh $@ or . ticktick.sh "$@" or . even ticktick.sh "hello" are all ignored after that point.

Is there any way to get this data passed along so I can work with it? (For instance, if I wanted to do a curl request against an arbitrary service and parse the JSON)?

Thanks in advance,

kristopolous commented 12 years ago

Hi! Thanks for contacting me!

My project utilizes a Bash Json parser by Dominic Tarr, available here: https://github.com/dominictarr/JSON.sh . This may be a better tool for OOB data processing. My solution is more about expanding Bash's syntax then working with RESTful URLs say, through cURL.

If that project doesn't help you, then feel free to hit me up again; Mr Tarr and I have been chatting on Twitter and I'm sure that one of us will be able to create what you need.

Thank you very much for your interest in the project and I hope you have a beautiful day.

Warm Regards,

Chris McKenzie.

kristopolous commented 12 years ago

Hi!

This is covered in issue #8 I think as far as the scope of this project should allow. If you think there should be more please feel free to reopen this.