You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've built a command and Im displaying some data using the table component off Ux (from the library @salesforce/sf-plugins-core), but when I use the --json flag, the json response is output after the table. I'd expect only the json result and not the table to be printed.
To Reproduce
Steps to reproduce the behavior:
Create a command with a Ux table printing some data on the stdout.
use the command with the -- json flag
Expected behavior
I would expect the output to be just the json data, based on what Im returning in the command class instead of the table + json output.
The ux module is not aware of the json flag and so you have to handle it yourself. The Command class has a jsonEnabled() method on it that will return true is json is enabled (either by the flag or env var). I would use that to determine if ux.table should be called.
I've built a command and Im displaying some data using the table component off Ux (from the library @salesforce/sf-plugins-core), but when I use the --json flag, the json response is output after the table. I'd expect only the json result and not the table to be printed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the output to be just the json data, based on what Im returning in the command class instead of the table + json output.
Additional context
Versions used -
@oclif/core - 2.15.0
@salesforce/sf-plugins-core - 4.0.0
The text was updated successfully, but these errors were encountered: