(argument: string)
| 130 | |
| 131 | // Saves the argument in a temporary file and returns the path to the file. |
| 132 | const saveArgumentInTempFile = async (argument: string): Promise<string> => { |
| 133 | const tempFilePath = join(tmpdir(), 'orbit-cli-argument-' + Math.random().toString(36).slice(2)); |
| 134 | |
| 135 | await writeFile(tempFilePath, argument, { |
| 136 | encoding: 'utf-8', |
| 137 | }); |
| 138 | |
| 139 | return tempFilePath; |
| 140 | }; |
| 141 | |
| 142 | command.action(async options => { |
| 143 | assertReplicaIsHealthy(options.network); |