(cmd: T)
| 90 | const AGENT_FLAG = '--agent' |
| 91 | |
| 92 | function addHiddenAgentFlag<T extends Command>(cmd: T) { |
| 93 | if (cmd.options.some((option) => option.long === AGENT_FLAG)) { |
| 94 | return cmd |
| 95 | } |
| 96 | |
| 97 | cmd.addOption( |
| 98 | new Option(AGENT_FLAG, 'internal: invocation originated from an agent').hideHelp(), |
| 99 | ) |
| 100 | |
| 101 | return cmd |
| 102 | } |
| 103 | |
| 104 | function getInvocationTelemetryProperties() { |
| 105 | return { |
no outgoing calls
no test coverage detected