Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override active profile using a flag #434

Open
fenhl opened this issue Oct 2, 2024 · 1 comment
Open

Override active profile using a flag #434

fenhl opened this issue Oct 2, 2024 · 1 comment
Labels
enhancement Improvements to the project priority I'm working on it, or will be soon

Comments

@fenhl
Copy link

fenhl commented Oct 2, 2024

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 fenhl added the enhancement Improvements to the project label Oct 2, 2024
@theRookieCoder theRookieCoder changed the title Configure profile by name Override active profile using a flag Oct 2, 2024
@theRookieCoder
Copy link
Collaborator

theRookieCoder commented Oct 2, 2024

There is a related issue #163, but that has a much wider scope than this one. This is technically a duplicate of that, but since this feature is much easier to implement, I'll leave this open and prioritise this.

Also thank you for pointing out portablemc! I've always wanted a CLI Minecraft launcher, it seems like my dream come true. Plus it's being rewritten in Rust!!

@theRookieCoder theRookieCoder added the priority I'm working on it, or will be soon label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to the project priority I'm working on it, or will be soon
Development

No branches or pull requests

2 participants