Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2.0.0 seems to ignore format string #13

Closed
sneak opened this issue Oct 8, 2016 · 9 comments
Closed

version 2.0.0 seems to ignore format string #13

sneak opened this issue Oct 8, 2016 · 9 comments

Comments

@sneak
Copy link

sneak commented Oct 8, 2016

sneak@pris:~$ CoreLocationCLI -once YES -format '{ "lat": %latitude, "lon": %longitude }'
<+37.REDACTED,-80.REDACTED> +/- 134.13m (speed -1.00 mps / course -1.00) @ 10/8/16, 00:05:58 Eastern Daylight Time
@sneak
Copy link
Author

sneak commented Oct 8, 2016


sneak@pris:~$ CoreLocationCLI -once yes -format '%latitude : %longitude'
works
sneak@pris:~$ CoreLocationCLI -once yes -format 'x %latitude : %longitude'
works
sneak@pris:~$ CoreLocationCLI -once yes -format '"lat" %latitude : %longitude'
fails
sneak@pris:~$ CoreLocationCLI -once yes -format 'lat %latitude : %longitude'
works
sneak@pris:~$ CoreLocationCLI -once yes -format '{ lat %latitude : %longitude'
fails
@sneak
Copy link
Author

sneak commented Oct 8, 2016

really would defaulting to json output be so bad?

@fulldecent
Copy link
Owner

Hmmm interesting that the other ones work but that one fails.

I would love JSON output everywhere. But convention seems to be that command line tools do not output JSON. Maybe we can make a -json option, but it would have to be streaming json.

@sneak
Copy link
Author

sneak commented Oct 8, 2016

Convention is wrong now that jq -r exists. Also, I always use -once.

@fulldecent
Copy link
Owner

That makes sense, -json can imply -once. I'm not sure how jq -r works.

@derhuerst
Copy link

I'm not sure how jq -r works.

@fulldecent See the manual for jq.

@sneak I don't think jq can be considered a standard/convention by now. It is still far too unknown.

@derhuerst
Copy link

derhuerst commented Oct 11, 2016

Why doesn't CoreLocationCLI output all information via JSON (like accuracy, speed, direction)? Right now, -json is a showstopper for me because it doesn't give me accuracy?

@derhuerst
Copy link

Why doesn't CoreLocationCLI output all information via JSON (like accuracy, speed, direction)? Right now, -json is a showstopper for me because it doesn't give me accuracy.

bump.

@derhuerst
Copy link

Also, it seems like you made backwards-incompatible changes with v2.2.0 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants