Perhaps you can address this by having a .bat file (or shell script) that contains your compilation line. Cobra itself has a comp.bat that reads:
- Code: Select all
Snapshot\cobra.exe -compile -color -debug -ert:yes -timeit %* -files:files-to-compile.text
Which also points out that you can use the -files: option to store your file list off the command line.
Another option is to use something like MSBuild or nant. Although there are no custom Cobra commands for them, I have used nant in the past by just invoking Cobra as an external command.
mindstorms, I'm not clear what you mean by "I should not have to include every single file from the main file". Currently there is no way to include any files from the main .cobra file.
Would it be helpful if Cobra took wild cards like "cobra *.cobra"?
Do you want to post some example command lines and/or source code of what you would like?