()
| 473 | } |
| 474 | |
| 475 | func (s *Session) updateCompleter() { |
| 476 | if s.completer != nil { |
| 477 | source, err := s.source(false) |
| 478 | if err != nil { |
| 479 | return |
| 480 | } |
| 481 | if err = s.completer.update(source); err != nil { |
| 482 | debugf("failed to update completer: %s", err) |
| 483 | } |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | func (s *Session) invokeCommand(in string) (err error) { |
| 488 | in = strings.TrimLeftFunc(in, func(c rune) bool { |
no test coverage detected