Vazkii / CMPDL

Curse Modpack Downloader
224 stars 58 forks source link

No gui option #10

Open sargunv opened 7 years ago

sargunv commented 7 years ago

It would be useful to have a no gui option, so it's usable from a distro such as Ubuntu Server.

Something like java -jar cmpdl.jar --url blah.

If you approve, I can submit a PR myself if you prefer.

Nincodedo commented 7 years ago

It looks like it already has a no gui option.

https://github.com/Vazkii/CMPDL/blob/master/src/vazkii/cmpdl/CMPDL.java#L35-L38

You just have to supply it a URL, otherwise it opens the gui. I haven't tried this myself though so can't confirm.

sargunv commented 7 years ago

Oh cool, will try it out tonight.

So just consider this issue a request for updating the readme about this.

thePalindrome commented 7 years ago

I can confirm that passing a url causes the program to run without a gui (aside from opening the newly created folder when it's done)

Do note that this will write the log to stdout, so don't expect to use that shell until it's done