MCPcopy
hub / github.com/cli/cli / clearItemFieldValue

Function clearItemFieldValue

pkg/cmd/project/item-edit/item_edit.go:269–284  ·  view source on GitHub ↗
(config editItemConfig)

Source from the content-addressed store, hash-verified

267}
268
269func clearItemFieldValue(config editItemConfig) error {
270 if err := fieldIdAndProjectIdPresence(config); err != nil {
271 return err
272 }
273 query, variables := buildClearItem(config)
274 err := config.client.Mutate("ClearItemFieldValue", query, variables)
275 if err != nil {
276 return err
277 }
278
279 if config.opts.exporter != nil {
280 return config.opts.exporter.Write(config.io, &query.Clear.Item)
281 }
282
283 return printItemResults(config, &query.Clear.Item)
284}
285
286func updateDraftIssue(config editItemConfig) error {
287 if !strings.HasPrefix(config.opts.itemID, "DI_") {

Callers 1

runEditItemFunction · 0.85

Calls 5

buildClearItemFunction · 0.85
printItemResultsFunction · 0.85
MutateMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected