(command: Command)
| 754 | // --------------------------------------------------------------------------- |
| 755 | |
| 756 | function resolveCommonOptions(command: Command): CommonOptions { |
| 757 | const globals = command.optsWithGlobals() as Partial<CommonOptions>; |
| 758 | return { |
| 759 | profile: globals.profile ?? 'default', |
| 760 | output: globals.output ?? 'text', |
| 761 | endpointUrl: globals.endpointUrl, |
| 762 | debug: globals.debug ?? false, |
| 763 | verbose: globals.verbose ?? false, |
| 764 | dryRun: globals.dryRun ?? false, |
| 765 | }; |
| 766 | } |
| 767 | |
| 768 | function makeOutput(mode: OutputMode, deps: AgentDeps): Output { |
| 769 | return new Output(mode, { stdout: deps.stdout, stderr: deps.stderr }); |
no outgoing calls
no test coverage detected