More implementation
This commit is contained in:
@@ -136,7 +136,6 @@ class Commands(cmd.Cmd):
|
||||
return super().preloop()
|
||||
|
||||
def precmd(self, line: str):
|
||||
|
||||
return super().precmd(line)
|
||||
|
||||
def postcmd(self, stop: bool, line: str) -> bool:
|
||||
@@ -159,7 +158,10 @@ class Commands(cmd.Cmd):
|
||||
|
||||
def print_one_rec(index, rec):
|
||||
cat, subcat, exp = lookup_cat(rec, self.catlist)
|
||||
print(f" [{index:2}] : {rec} - {cat} / {subcat} - {exp[0:30]}")
|
||||
line = f" [{index:2}] : {rec} - {cat} / {subcat} - {exp}"
|
||||
if len(line) > 75:
|
||||
line = line[0:75] + "..."
|
||||
print(line)
|
||||
|
||||
self.rec_list = []
|
||||
print("Suggested from description:")
|
||||
|
Reference in New Issue
Block a user