| 29 | } |
| 30 | |
| 31 | void TCompleterManager::GenerateZsh(TFormattedOutput& out) { |
| 32 | while (!Queue_.empty()) { |
| 33 | auto[name, completer] = Queue_.back(); |
| 34 | Queue_.pop_back(); |
| 35 | |
| 36 | L << "(( $+functions[" << name << "] )) ||"; |
| 37 | L << name << "() {"; |
| 38 | { |
| 39 | I; |
| 40 | completer->GenerateZsh(out, *this); |
| 41 | } |
| 42 | L << "}"; |
| 43 | L; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | class TAlternativeCompleter: public ICompleter { |
| 48 | public: |