MCPcopy Create free account
hub / github.com/catboost/catboost / AddCompletions

Method AddCompletions

library/cpp/getopt/small/modchooser.cpp:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void TModChooser::AddCompletions(TString progName, const TString& name, bool hidden, bool noCompletion) {
166 if (CompletionsGenerator == nullptr) {
167 CompletionsGenerator = NLastGetopt::MakeCompletionMod(this, std::move(progName), name);
168 AddMode(name, CompletionsGenerator.Get(), "generate autocompletion files", hidden, noCompletion);
169 }
170}
171
172void TModChooser::SetSubcommandPath(const TVector<TString>& subcommandPath) const {
173 SubcommandPath_ = subcommandPath;

Callers

nothing calls this directly

Calls 3

MakeCompletionModFunction · 0.85
moveFunction · 0.50
GetMethod · 0.45

Tested by

no test coverage detected