Function
combineArgs
(
args: string[],
context: CommandContext,
options: { hasFormats?: boolean } | undefined,
)
Source from the content-addressed store, hash-verified
| 87 | } |
| 88 | |
| 89 | function combineArgs( |
| 90 | args: string[], |
| 91 | context: CommandContext, |
| 92 | options: { hasFormats?: boolean } | undefined, |
| 93 | ): string[] { |
| 94 | return [ |
| 95 | ...(context.config ? [`--config=${context.config}`] : []), |
| 96 | ...args, |
| 97 | ...(options?.hasFormats === false |
| 98 | ? DEFAULT_PERSIST_FORMAT.map(format => `--persist.format=${format}`) |
| 99 | : []), |
| 100 | ]; |
| 101 | } |
Tested by
no test coverage detected