Return a listing of local files for completion purposes
(self, arg, cond)
| 1481 | return self._dir_complete(folder) |
| 1482 | |
| 1483 | def _lfs_complete(self, arg, cond): |
| 1484 | """ |
| 1485 | Return a listing of local files for completion purposes |
| 1486 | """ |
| 1487 | eltpar, eltname = self._parsepath(arg, remote=False) |
| 1488 | eltpar = self.localpwd / eltpar |
| 1489 | return [ |
| 1490 | # trickery so that ../<TAB> works |
| 1491 | str(eltpar / x.name) |
| 1492 | for x in eltpar.resolve().glob("*") |
| 1493 | if (x.name.lower().startswith(eltname.lower()) and cond(x)) |
| 1494 | ] |
| 1495 | |
| 1496 | @CLIUtil.addoutput(cd) |
| 1497 | def cd_output(self, result): |
no test coverage detected