cli icon indicating copy to clipboard operation
cli copied to clipboard

'heroku-run' should accept callbacks for its API queries instead of accepting a client object

Open vedantgoyal opened this issue 7 years ago • 1 comments

Do you want to request a feature or report a bug?

enahncement

What is the current behavior?

'heroku-run' exports a Dyno class to create new dynos or run commands inside existing dynos. It takes a parameter called 'heroku' which is the api client used by the Dyno class to create or find a dyno.

What is the expected behavior?

It would be preferable for the Dyno class to take api callbacks as a parameter instead. This will make reusing this module much simpler. Currently a heroku client has to be emulated and passed as a parameter to make different api calls.

vedantgoyal avatar Aug 21 '19 22:08 vedantgoyal

Closing as superseded. The standalone heroku-run npm package was absorbed into the CLI monorepo as an internal library (src/lib/run/dyno.ts). The API ergonomics request no longer applies to an internal class with no external consumers.

heroku-johnny avatar Jul 27 '26 15:07 heroku-johnny