inkytonik / cooma

The Cooma project is investigating secure programming language design based on fine-grained object capabilities.
Mozilla Public License 2.0
3 stars 2 forks source link

Add ability to read command-line from file #56

Open inkytonik opened 3 years ago

inkytonik commented 3 years ago

As the capability specifiers get more powerful (e.g., for the database caps) we are getting long command-lines. For convenience, it would be good to have an option that allows arguments to be read from a file.

inkytonik commented 3 years ago

The updated plan is to have two modes of execution for a Cooma program. One is as we have now.

The other mode will use a command-line flag to indicate that the argument values will come from a file. The program will take a single command-line string naming the argument file. The file will contain a Cooma record with named fields with string blues. 5he names of the fields should correspond to the names of the arguments of the program function. The runtime needs to check this conformance when processing the arguments.