ferium icon indicating copy to clipboard operation
ferium copied to clipboard

Override active profile using a flag

Open fenhl opened this issue 4 months ago • 1 comments

The Problem

I'm writing a script that calls ferium and portablemc in order to automatically sync the Minecraft version to my server's, then update Fabric and mods before launching the game and connecting to the server. Ideally I would like to do so without modifying the active ferium profile. Currently, the only way to do this I can think of is:

  1. Parse the output of ferium profile to remember the previously active profile
  2. Use ferium switch to switch to the profile for playing on the server
  3. Run ferium profile configure --game-version to ensure the Minecraft version is correct
  4. Run ferium upgrade to ensure mods are up to date
  5. Run ferium profile switch to restore the previously active profile

Your Solution(s)

It would be nice to have a --profile option that overrides the active profile for the scope of this command only. This would allow the workflow above to be reduced to:

  1. ferium --profile=foo profile configure --game-version
  2. ferium --profile=foo upgrade

fenhl avatar Oct 02 '24 14:10 fenhl