-
Notifications
You must be signed in to change notification settings - Fork 36
Config runCommand should return result #350
Comments
Git2Gus App is installed but the |
@jamessimone This library has been deprecated in favor of @oclif/core, which does return the command result, see https://github.com/oclif/core/blob/main/src/config/config.ts#L349. I'm going to close this issue but feel free to open another issue in the oclif/core repo if you run into anything else. |
@mdonnalley nice - that's amazing to here. I was working on converting a GitHub action which is currently using an older version of SFDX ( |
@jamessimone I believe sfdx began using @oclif/core in 7.163.0 |
@mdonnalley thanks! I guess we'll have to wait for oclif/core#592 and then whenever that gets pulled into SFDX for this to be fully resolved, but I appreciate your help with this. |
I'm not sure if this was the intended behavior or not, but I noticed recently while working with SFDX and TypeScript that the result of commands bubbles nearly all the way up to the caller - only to be abandoned here. I'm guessing that the intent was for the caller to implement
postRun
to get explicit access to the result, but not all commands do, leavingresult
to dangle at the penultimate moment.For my current use-case (
scanner:run
), I can get around this issue because that command itself can actually write to the filesystem, but it'd be vastly preferable to avoid the extrafs
work (and open up the flexibility of other commands' being more easily interacted with at the TypeScript-level).The text was updated successfully, but these errors were encountered: