| 192 | } |
| 193 | |
| 194 | int Star::edit(int argc, char* argv[], JsonPath::PathPtr const& path, Options const& options, List<Input> const& inputs) { |
| 195 | QApplication app(argc, argv); |
| 196 | StringList files; |
| 197 | for (Input const& input : inputs) { |
| 198 | if (input.is<FindInput>()) |
| 199 | files.appendAll(findFiles(input.get<FindInput>())); |
| 200 | else |
| 201 | files.append(input.get<FileInput>().filename); |
| 202 | } |
| 203 | JsonEditor e(path, options, files); |
| 204 | e.show(); |
| 205 | return app.exec(); |
| 206 | } |