| 163 | } |
| 164 | |
| 165 | void 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 | |
| 172 | void TModChooser::SetSubcommandPath(const TVector<TString>& subcommandPath) const { |
| 173 | SubcommandPath_ = subcommandPath; |
nothing calls this directly
no test coverage detected