Ticket #229 (new idea)

Opened 8 years ago

Last modified 8 years ago

-files: could use more power

Reported by: Kurper Owned by:
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:


I have multiple projects share substantial portions of their codebase (client/, shared/, and server/, basically), and being able to do something like:


#include sharedfiles.txt

#include sharedfiles.txt

would be nice. There are a bunch of ways to fake this with make/msbuild/whatever else you want to use, but it's nice being able to run Cobra with just "cobra -files:files.txt" even for big ol' projects.

Change History

Changed 8 years ago by nevdelap

I haven't tried, but if multiple -files options are/were possible it would be clean simple.

cobra ... -files:sharedfiles.txt -files.clientfiles.txt

Changed 8 years ago by hopscc

The 'files' option is an accumulator so it will add each filename given to a list and process them in order.

Note: See TracTickets for help on using tickets.