MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / showProfiles

Function showProfiles

src/fluxengine.cc:149–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void showProfiles(const std::string& command,
150 const std::map<std::string, const ConfigProto*>& profiles)
151{
152 std::cout << "syntax: fluxengine " << command
153 << " <profile> [<extensions...>] [<options>...]\n"
154 "Use --help for option help.\n"
155 "Available profiles include:\n";
156
157 for (const auto& it : profiles)
158 {
159 const auto& c = *it.second;
160 if (!c.is_extension())
161 std::cout << fmt::format(" {}: {}\n", it.first, c.shortname());
162 }
163
164 std::cout << "Available profile options include:\n";
165
166 for (const auto& it : profiles)
167 {
168 const auto& c = *it.second;
169 if (c.is_extension() && (it.first[0] != '_'))
170 std::cout << fmt::format(" {}: {}\n", it.first, c.comment());
171 }
172
173 std::cout << "Profiles and extensions may also be textpb files .\n";
174 exit(1);
175}
176
177int main(int argc, const char* argv[])
178{

Callers 12

mainReadFunction · 0.85
mainLsFunction · 0.85
mainGetFileInfoFunction · 0.85
mainRawWriteFunction · 0.85
mainGetFileFunction · 0.85
mainGetDiskInfoFunction · 0.85
mainFormatFunction · 0.85
mainPutFileFunction · 0.85
mainWriteFunction · 0.85
mainRmFunction · 0.85
mainMkDirFunction · 0.85
mainMvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected