MCPcopy Create free account
hub / github.com/cli/cli / Options

Method Options

pkg/cmd/project/shared/queries/queries.go:1030–1042  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1028}
1029
1030func (p ProjectField) Options() []SingleSelectFieldOptions {
1031 if p.TypeName == "ProjectV2SingleSelectField" {
1032 var options []SingleSelectFieldOptions
1033 for _, o := range p.SingleSelectField.Options {
1034 options = append(options, SingleSelectFieldOptions{
1035 ID: o.ID,
1036 Name: o.Name,
1037 })
1038 }
1039 return options
1040 }
1041 return nil
1042}
1043
1044func (p ProjectField) ExportData(_ []string) map[string]any {
1045 v := map[string]any{

Callers 8

ExportDataMethod · 0.95
buildSelectFormMethod · 0.80
buildMultiSelectFormMethod · 0.80
SelectMethod · 0.80
MultiSelectMethod · 0.80
MarkdownEditorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected