'brew\homebrew use ruby api and not its cli api

rather than using the brew through the command line, i would like to use its api in ruby.

for instance, rather than executing brew info --json wget in the command line, use brew within a ruby code like Brew.info("wget") (i am familiar with the message that appears in the ruby doc) without implementing a ruby wrapper for shelling out brew cli.

any help would be appreciated.



Solution 1:[1]

Yeah, there is no homebrew SDK for any language, so you might have to wrap the command line to develop something. :(

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 chenrui