Skip to content

Commit 7be10fb

Browse files
committed
+Mᐁ includes
1 parent 82a5093 commit 7be10fb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/go/readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ With an empty history, or when stdin is redirected / non-interactive (CI, pipes)
5151
Local paths that no longer exist are dropped from the picker; remote refs stay listed
5252
even when their download bundle is gone (the next run re-downloads as usual).
5353

54+
Gists are labeled as `owner/shortsha:file` (first seven characters of the gist id),
55+
for example `kzu/0ac826d:run.cs`, instead of the full host URL.
56+
5457
```console
5558
# Interactive: pick a previous run, then optional args
5659
dnx go
@@ -108,9 +111,15 @@ dnx go -- kzu/sandbox@v1.2.3:src/hello.cs
108111
# Full host (GitHub, Gist, GitLab, Azure DevOps)
109112
dnx go -- github.com/kzu/sandbox@main:hello.cs
110113
dnx go -- gist.github.com/kzu/0ac826dc7de666546aaedd38e5965381
114+
# Multi-file gist: pick a specific entry file with :path (same as repos)
115+
dnx go -- gist.github.com/kzu/0ac826dc7de666546aaedd38e5965381:run.cs
111116
dnx go -- gitlab.com/kzu/runcs/-/blob/main/program.cs
112117
```
113118

119+
Without `:path`, a gist (or repo) defaults to `program.cs` when present, otherwise
120+
the first top-level `.cs` file. Use `:filename.cs` when a multi-file gist should
121+
run a different entry point.
122+
114123
The first argument is resolved by first checking if it is a local file (`File.Exists`).
115124
If not, it falls back to parsing it as a remote ref (`owner/repo[@ref][:path]`).
116125

0 commit comments

Comments
 (0)