Store your Minecraft configs with your other dotfiles, and load it automatically.
1package cli
2
3import (
4 "context"
5
6 "github.com/urfave/cli/v3"
7 "potassium.sh/dot-mining/core"
8 "potassium.sh/dot-mining/minecraft"
9)
10
11var syncCommand = &cli.Command{
12 Name: "sync",
13 Description: "Synchronise your mods and configs.",
14 Action: func(ctx context.Context, cmd *cli.Command) error {
15 return sync()
16 },
17}
18
19func sync() error {
20 core.InitConfig()
21 minecraft.WriteOptions(core.Config.Options, core.MinecraftFile("options.txt"))
22 return nil
23}