olofk / fusesoc

Package manager and build abstraction tool for FPGA/ASIC development
BSD 2-Clause "Simplified" License
1.16k stars 242 forks source link

Simplify "run --target=XXX" command #260

Open imphil opened 5 years ago

imphil commented 5 years ago

What can we do to simplify the pattern to run a given target? Users don't want to type "fusesoc run --target=lint", but "fusesoc lint" just like they call "fusesoc build". Command line options to fusesoc always have been a bit tricky, so I'm not fully sure on the implications of making for example all targets available instead of "run", or having making the target a subcommand of run, e.g. "run lint".

olofk commented 5 years ago

Yes, it's a bit tricky but it can probably be improved. I don't want to introduce tool types again (e.g. build, sim, lint) as they caused a bit of a headache in capi1. So both the sim and build commands are considered deprecated and only run should be used. Maybe we can do some compromise. A couple of options