If there's enough support, we could create a CLI interface for Carbon.
I'm super interested in working on a CLI. How would it work, though? The only way I can see it working at the moment is using an API from Carbon to fetch the image. The downside to this is that the user would need an internet connection. An alternative would be for the user to self-host Carbon, but that would result in high startup times.
It'd be great if we could think of a way to do this without a server.
See Brian's comment here: https://github.com/dawnlabs/carbon/pull/88#issuecomment-333429240
@andrewda the functionality I'm working on now to get the app working in Safari should be pretty similar to what's needed for the CLI locally. Once I finish that, let's chat
UPDATE: The Safari progress went a different direction. I'm no longer working on this directly.
Hey guys I have made a simple CLI here https://github.com/itaditya/carbon-cli . Take a look https://www.npmjs.com/package/carbon-cli
If there's enough support, we could create a CLI interface for Carbon.
as a bash script or alike without npm? would be very welcome and sleek
like carbon --syntax=c --theme=material input.c output_c.png
Maybe it's possible to build an entirely local CLI with puppeteer?
Hey all, issues marked "Integrations" are being closed and theirs discussions moved to https://github.com/dawnlabs/carbon/issues/358. With many requests for new features, this allows the Carbon team to prioritize which to support first 馃憤
Most helpful comment
as a bash script or alike without npm? would be very welcome and sleek
like
carbon --syntax=c --theme=material input.c output_c.png