MCPcopy Create free account
hub / github.com/github/gh-aw / singleSelectOptionsEqual

Function singleSelectOptionsEqual

pkg/cli/project_command.go:773–783  ·  view source on GitHub ↗

singleSelectOptionsEqual checks if two option slices are equal

(a, b []singleSelectOption)

Source from the content-addressed store, hash-verified

771
772// singleSelectOptionsEqual checks if two option slices are equal
773func singleSelectOptionsEqual(a, b []singleSelectOption) bool {
774 if len(a) != len(b) {
775 return false
776 }
777 for i := range a {
778 if a[i] != b[i] {
779 return false
780 }
781 }
782 return true
783}
784
785// updateSingleSelectFieldOptions updates a single-select field's options
786func updateSingleSelectFieldOptions(ctx context.Context, fieldID string, options []singleSelectOption, verbose bool) error {

Callers 2

Calls

no outgoing calls

Tested by 1