derrod / legendary

Legendary - A free and open-source replacement for the Epic Games Launcher
https://legendary.gl/discord
GNU General Public License v3.0
4.65k stars 166 forks source link

Ability to pass multiple commands in one line #619

Open SupDos opened 1 year ago

SupDos commented 1 year ago

When using legendary launch <Game>, if there is any issue whatsoever such as login credentials being out of date or the game needing an update, legendary will only inform you about this, but it won't try to fix the issue.

Currently I've got a batch script that basically just does 3 commands one after another, legendary auth&&legendary update <Game>&&legendary launch <Game>, so if I ever need to log in, it will prompt me to, if I ever need to update the game it will prompt me to, and otherwise it will just launch the game.

Describe the solution you'd like A way of passing multiple commands in one line, for example legendary auth update <Game> launch <Game>, which would do each command one after another

Spike1377 commented 10 months ago

shouldnt it be legendary auth update launch <game> ?

orr maybe passing -y at the end should run 'update' or 'auth' or both depending on the error idk how to program this

SupDos commented 10 months ago

It would hopefully be possible to use any other command as well, not just these 3, so update would need the game name argument just as it does usually