Function
generateProgressiveArgumentHint
(
argNames: string[],
typedArgs: string[],
)
Source from the content-addressed store, hash-verified
| 74 | * @returns Hint string like "[arg2] [arg3]" or undefined if all filled |
| 75 | */ |
| 76 | export function generateProgressiveArgumentHint( |
| 77 | argNames: string[], |
| 78 | typedArgs: string[], |
| 79 | ): string | undefined { |
| 80 | const remaining = argNames.slice(typedArgs.length) |
| 81 | if (remaining.length === 0) return undefined |
| 82 | return remaining.map(name => `[${name}]`).join(' ') |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Substitute $ARGUMENTS placeholders in content with actual argument values. |
Tested by
no test coverage detected