CodeFormatter/fmtYQ.cpp
raw| 1 | #include "fmtYQ.hpp" |
| 2 | |
| 3 | #include "Platform.hpp" |
| 4 | |
| 5 | #include <wx/string.h> |
| 6 | |
| 7 | fmtYQ::fmtYQ() |
| 8 | { |
| 9 | SetName("yq"); |
| 10 | |
| 11 | // handle all known JSON files |
| 12 | SetFileTypes({ FileExtManager::TypeYAML }); |
| 13 | |
| 14 | SetDescription(_("commandline YAML processor")); |
| 15 | SetShortDescription(_("Yaml formatter")); |
| 16 | |
| 17 | wxString yq_exe = "yq"; |
| 18 | ThePlatform->Which("yq", &yq_exe); |
| 19 | SetCommand({ yq_exe, ".", R"#("$(CurrentFileRelPath)")#" }); |
| 20 | } |
| 21 | |
| 22 | fmtYQ::~fmtYQ() {} |