Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/go/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ With an empty history, or when stdin is redirected / non-interactive (CI, pipes)
Local paths that no longer exist are dropped from the picker; remote refs stay listed
even when their download bundle is gone (the next run re-downloads as usual).

Gists are labeled as `owner/shortsha:file` (first seven characters of the gist id),
for example `kzu/0ac826d:run.cs`, instead of the full host URL.

```console
# Interactive: pick a previous run, then optional args
dnx go
Expand Down Expand Up @@ -108,9 +111,15 @@ dnx go -- kzu/sandbox@v1.2.3:src/hello.cs
# Full host (GitHub, Gist, GitLab, Azure DevOps)
dnx go -- github.com/kzu/sandbox@main:hello.cs
dnx go -- gist.github.com/kzu/0ac826dc7de666546aaedd38e5965381
# Multi-file gist: pick a specific entry file with :path (same as repos)
dnx go -- gist.github.com/kzu/0ac826dc7de666546aaedd38e5965381:run.cs
dnx go -- gitlab.com/kzu/runcs/-/blob/main/program.cs
```

Without `:path`, a gist (or repo) defaults to `program.cs` when present, otherwise
the first top-level `.cs` file. Use `:filename.cs` when a multi-file gist should
run a different entry point.

The first argument is resolved by first checking if it is a local file (`File.Exists`).
If not, it falls back to parsing it as a remote ref (`owner/repo[@ref][:path]`).

Expand Down
Loading