cubicaltt icon indicating copy to clipboard operation
cubicaltt copied to clipboard

Add command-line options to run commands (or take a command file) and/or redirect output

Open favonia opened this issue 6 years ago • 6 comments

This will simplify the batch job description a lot!

favonia avatar Sep 24 '18 08:09 favonia

Could you give examples of what you mean? I’m thinking that for instance we could have a command

:n>big.txt u

to redirect the normal form of u in the file big.txt rather than printing it. Are you thinking of something else?

guillaumebrunerie avatar Sep 24 '18 08:09 guillaumebrunerie

I want something with absolutely zero interaction. For example, a line such as

./cubical -t examples/brunerie.ctt -e brunerie -e another_lemma -o output.txt

is good (syntax inspired by many other interpreters). Output redirection is optional, but taking inputs from the command lines (or -c input.txt from some file) will help a lot.

favonia avatar Sep 24 '18 09:09 favonia

Ah, makes sense, I can take a look.

guillaumebrunerie avatar Sep 24 '18 09:09 guillaumebrunerie

The -e option is now implemented (commit fedeb45), but not yet -o. You can now run

cubical examples/brunerie.ctt -e brunerie -e another_lemma

and it will load the file, run all the lemmas that you gave as a -e, then exit. If you want normal forms, the syntax is cubical file.ctt -e ":n lemma".

Note also that the option -t does not exist anymore (it’s now always on).

guillaumebrunerie avatar Sep 24 '18 11:09 guillaumebrunerie

Is there anyone working on the option -o now?

favonia avatar Nov 21 '18 02:11 favonia

I don't think so...

mortberg avatar Nov 21 '18 14:11 mortberg

Closing this due to lack of interest.

favonia avatar Nov 27 '22 08:11 favonia