MCPcopy Create free account
hub / github.com/bombshell-dev/clack / toggleAll

Method toggleAll

packages/core/src/prompts/multi-select.ts:28–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 }
27
28 private toggleAll() {
29 const enabledOptions = this._enabledOptions;
30 const allSelected = this.value !== undefined && this.value.length === enabledOptions.length;
31 this.value = allSelected ? [] : enabledOptions.map((v) => v.value);
32 }
33
34 private toggleInvert() {
35 const value = this.value;

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected