MCPcopy Index your code
hub / github.com/larksuite/cli / Desc

Method Desc

internal/cmdutil/dryrun.go:86–93  ·  view source on GitHub ↗

Desc sets a description on the last added call. If no calls exist yet, sets the top-level description.

(desc string)

Source from the content-addressed store, hash-verified

84// Desc sets a description on the last added call.
85// If no calls exist yet, sets the top-level description.
86func (d *DryRunAPI) Desc(desc string) *DryRunAPI {
87 if n := len(d.calls); n > 0 {
88 d.calls[n-1].Desc = desc
89 } else {
90 d.desc = desc
91 }
92 return d
93}
94
95// Set adds an extra context field. Values are also used to resolve :key placeholders in URLs.
96func (d *DryRunAPI) Set(key string, value interface{}) *DryRunAPI {

Callers 15

buildWikiMoveDryRunFunction · 0.95
buildWikiNodeGetDryRunFunction · 0.95
buildWikiMemberAddDryRunFunction · 0.95
dryRunBaseCreateFunction · 0.95
PlanImportDryRunFunction · 0.95
TestDryRunAPI_SingleGETFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestDryRunAPI_SingleGETFunction · 0.64