Stream: ideas

Topic: `roc gist` subcommand


view this post on Zulip Rick Hull (Jan 21 2026 at 23:31):

I'm hesitant to tie anything directly to github these days, but the term "gist" can be applied to several different APIs. Here is the proposal in a nutshell:

roc examples/foo.roc
# ...

roc gist examples/foo.roc
# executes as above
# captures STDOUT and STDERR
# uploads a gist: foo.roc STDOUT.txt STDERR.txt

roc gist examples/foo.roc platform/Foo.roc
# executes as above
# includes the additional file for reference: Foo.roc

Implementation: rocgist

Why? I have already used this several times when asking for support on this Zulip. Hi @Anton :wave:

view this post on Zulip Rick Hull (Jan 23 2026 at 00:16):

could also be roc support path/to/file.roc

view this post on Zulip Anton (Jan 24 2026 at 10:14):

Interesting, how does it make use of your github account?

view this post on Zulip Rick Hull (Jan 24 2026 at 10:53):

gh client. Step 1, install. Step 2, authenticate. Auth may be optional for gist, not sure

view this post on Zulip Rick Hull (Jan 24 2026 at 10:54):

Fixed impl link

view this post on Zulip Tobias Steckenborn (Jan 24 2026 at 12:04):

Alternative that might be more controllable if one wants to migrate away from gists or the like, would be to somehow utilize the playground for that (limitations on what could be done due to size and e.g. platforms to be considered)

view this post on Zulip Jasper Woudenberg (Jan 24 2026 at 12:23):

I think using gh you can pretty much get this already:

roc examples/foo.roc | gh gist create

view this post on Zulip Rick Hull (Jan 24 2026 at 19:02):

The real value is in auto attaching STDOUT.txt and STDERR.txt, plus any additional files for context. It Just Works (tm) as drop in replacement for roc


Last updated: Jun 16 2026 at 16:19 UTC