-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add --json
flag to all query commands
#577
Comments
This would save me a lot for a Raycast extension in developing. Right now I’m using —format to retrieve a JSON object-like list of windows in focused workspace but when doing JSON.parse it breaks if a window has “ in the %{window-title}. |
I think it should work this way:
|
This looks good to me. The output is the exact one I “hacked” for the Raycast extension. Something I struggled, but don’t know up to which point you have control is: |
#577 The change is non-functional yet
Released in 0.15.0 |
All query commands must provide
--json
flag to make it easier to use them for reliable scripting.Currently presented query commnads:
list-windows
list-monitors
list-apps
list-workspaces
(I plan to drop this command)list-exec-env-vars
It's an open question how
--json
should interact with--format
flag that those commands also haveThe text was updated successfully, but these errors were encountered: