MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / list_commands

Method list_commands

src/common/cmdargparser.cpp:159–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158
159void Commands::ShellCompletion::list_commands()
160{
161 bool first = true;
162 for (auto &cmd : commands->GetAllCommandObjects())
163 {
164 if (cmd->GetCommand() == GetCommand())
165 {
166 // Skip myself
167 continue;
168 }
169 if (!first)
170 {
171 std::cout << " ";
172 }
173 first = false;
174 std::cout << cmd->GetCommand();
175 }
176 std::cout << std::endl;
177}
178
179
180/**

Callers

nothing calls this directly

Calls 2

GetAllCommandObjectsMethod · 0.80
GetCommandMethod · 0.80

Tested by

no test coverage detected