arr-ai / arrai

The ultimate data engine.
http://arr.ai
Apache License 2.0
20 stars 15 forks source link

Add command `clear` to remove all content in stdout #517

Open ericzhang6222 opened 4 years ago

ericzhang6222 commented 4 years ago

Add a command clear in arr.ai shell which can clean out stdout like the command clear in Linux. For example:

@> model.app('PetShopApi').package
2020-07-22T14:15:29.20413+08:00 error_message=Missing attr "app" (available: |apps|)

.:1:1:
model.app('PetShopApi').package INFO 
@> model.apps('PetShopApi').package
2020-07-22T14:15:33.980039+08:00 error_message=Missing attr "package" (available: |name,types,endpoints,source_context,attrs|)

.:1:1:
model.apps('PetShopApi').package INFO 
@> model.apps('PetShopApi')
@> clear

will get

@> 
marcelocantos commented 4 years ago

Why is this needed?