A vibe coded tangled fork which supports pijul.
at master 48 lines 1.4 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.pijulBlob 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoPijulBlobNSID = "sh.tangled.repo.pijulBlob" 15) 16 17// RepoPijulBlob_Output is the output of a sh.tangled.repo.pijulBlob call. 18type RepoPijulBlob_Output struct { 19 // contents: File contents (empty for binary files) 20 Contents *string `json:"contents,omitempty" cborgen:"contents,omitempty"` 21 // is_binary: Whether the file is binary 22 Is_binary bool `json:"is_binary" cborgen:"is_binary"` 23 // path: File path 24 Path string `json:"path" cborgen:"path"` 25 // ref: Channel name 26 Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"` 27} 28 29// RepoPijulBlob calls the XRPC method "sh.tangled.repo.pijulBlob". 30// 31// channel: Pijul channel name (defaults to main channel) 32// path: Path to the file within the repository 33// repo: Repository identifier in format 'did:plc:.../repoName' 34func RepoPijulBlob(ctx context.Context, c util.LexClient, channel string, path string, repo string) (*RepoPijulBlob_Output, error) { 35 var out RepoPijulBlob_Output 36 37 params := map[string]interface{}{} 38 if channel != "" { 39 params["channel"] = channel 40 } 41 params["path"] = path 42 params["repo"] = repo 43 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.pijulBlob", params, nil, &out); err != nil { 44 return nil, err 45 } 46 47 return &out, nil 48}