in model_ctx.py [0:0]
def make_ctx(rec):
options = eval(rec['options'])
cmd = rec['cmd']
synopsis = clean_text(rec['synopsis'])
r = f'|{cmd} {synopsis}'
for opt in options:
short_flag = opt['short'][0] if len(opt['short']) > 0 else ''
text = clean_text(opt['text'])
r += f'|{short_flag} ' + ' '.join(text.split()[:5])
return r