MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / readStringFlagByKeys

Function readStringFlagByKeys

apps/cli/src/commands/integrations/feishu.ts:2062–2073  ·  view source on GitHub ↗
(
  flags: Record<string, string | boolean>,
  keys: string[],
)

Source from the content-addressed store, hash-verified

2060}
2061
2062function readStringFlagByKeys(
2063 flags: Record<string, string | boolean>,
2064 keys: string[],
2065): string | undefined {
2066 for (const key of keys) {
2067 const value = getStringFlag(flags, key);
2068 if (value?.trim()) {
2069 return value.trim();
2070 }
2071 }
2072 return undefined;
2073}
2074
2075export function createFeishuChannelBindingForCli(
2076 input: {

Callers 2

readFeishuPolicyFlagFunction · 0.85
readFeishuPolicyListFlagFunction · 0.85

Calls 1

getStringFlagFunction · 0.90

Tested by

no test coverage detected