Zulip Chat Archive

Stream: lean4

Topic: printing to stdout


Damiano Testa (Jan 06 2023 at 21:22):

Dear All,

this is a very basic question.

Is it possible to run a command like lean --run <pathToFile> that would print to stdout all the #eval and whatever appears in the infoview? lean --run seems to only work for files that do not import anything else, whereas I would like this to run on files with imports. I use Linux Mint, in case it matters.

Thanks!

Gabriel Ebner (Jan 06 2023 at 21:28):

You want lake env lean <pathToFile>

Gabriel Ebner (Jan 06 2023 at 21:28):

--run runs the main function

Damiano Testa (Jan 06 2023 at 21:32):

Great, thanks! I'll play around with it!

Damiano Testa (Jan 06 2023 at 22:24):

Gabriel, this seems exactly what I was looking for: thank you very much!


Last updated: Dec 20 2023 at 11:08 UTC