Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
Go
12345678910111213141516171819202122232425262728293031323334353637383940// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.git.keepCommit
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( GitKeepCommitNSID = "sh.tangled.git.keepCommit")
// GitKeepCommit_Input is the input argument to a sh.tangled.git.keepCommit call.type GitKeepCommit_Input struct { // ref: ref to keep Ref string `json:"ref" cborgen:"ref"` // repo: AT-URI of the repository Repo string `json:"repo" cborgen:"repo"`}
// GitKeepCommit_Output is the output of a sh.tangled.git.keepCommit call.type GitKeepCommit_Output struct { // commitId: Keeped commit hash CommitId string `json:"commitId" cborgen:"commitId"`}
// GitKeepCommit calls the XRPC method "sh.tangled.git.keepCommit".func GitKeepCommit(ctx context.Context, c util.LexClient, input *GitKeepCommit_Input) (*GitKeepCommit_Output, error) { var out GitKeepCommit_Output if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.git.keepCommit", nil, input, &out); err != nil { return nil, err }
return &out, nil}