({
name,
description,
argumentHint,
supportsNonInteractive = true,
}: UnrecoveredCommandOptions)
| 16 | } |
| 17 | |
| 18 | export function createUnrecoveredLocalCommand({ |
| 19 | name, |
| 20 | description, |
| 21 | argumentHint, |
| 22 | supportsNonInteractive = true, |
| 23 | }: UnrecoveredCommandOptions): Command { |
| 24 | return { |
| 25 | type: 'local', |
| 26 | name, |
| 27 | description, |
| 28 | argumentHint, |
| 29 | isHidden: !isNoumenaMode(), |
| 30 | isEnabled: () => isNoumenaMode(), |
| 31 | supportsNonInteractive, |
| 32 | load: () => Promise.resolve({ call: buildUnrecoveredCall(name) }), |
| 33 | } satisfies Command |
| 34 | } |
no test coverage detected