Debian Codegraph @

CodeFormatter/fmtJQ.cpp

raw
1 #include "fmtJQ.hpp"
2
3 #include "Platform.hpp"
4
5 fmtJQ::fmtJQ()
6 {
7 SetName("jq");
8
9 // handle all known JSON files
10 SetFileTypes({ FileExtManager::TypeJSON, FileExtManager::TypeWorkspaceFileSystem,
11 FileExtManager::TypeWorkspaceDocker, FileExtManager::TypeWxCrafter,
12 FileExtManager::TypeWorkspaceNodeJS, FileExtManager::TypeWorkspacePHP });
13
14 SetDescription(_("commandline JSON processor"));
15 SetShortDescription(_("jq - a json formatter"));
16
17 wxString jq_exe = "jq";
18 ThePlatform->Which("jq", &jq_exe);
19 SetCommand({ jq_exe, ".", "-S", R"#("$(CurrentFileRelPath)")#" });
20 }
21
22 fmtJQ::~fmtJQ() {}