From 7be10fb90ebb18322da2f8425cc0ececb51518fd Mon Sep 17 00:00:00 2001 From: devlooped-bot Date: Wed, 22 Jul 2026 04:16:30 +0000 Subject: [PATCH] =?UTF-8?q?+M=E1=90=81=20includes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/go/readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/go/readme.md b/src/go/readme.md index a926c93..96f38a9 100644 --- a/src/go/readme.md +++ b/src/go/readme.md @@ -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 @@ -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]`).