Modify the kittens sub-system to allow creating custom kittens without any user interface.

See #870
This commit is contained in:
Kovid Goyal
2018-10-12 18:09:37 +05:30
parent c493583f25
commit 787100a4dc
4 changed files with 54 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ def create_kitten_handler(kitten, orig_args):
m = import_kitten_main_module(config_dir, kitten)
ans = partial(m['end'], [kitten] + orig_args)
ans.type_of_input = getattr(m['end'], 'type_of_input', None)
ans.no_ui = getattr(m['end'], 'no_ui', False)
return ans