You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[clap(about("Add a Modrinth mod to the profile"))]
22
-
AddModrinth{
23
-
#[clap(help("The project ID is specified at the bottom of the left sidebar under 'Technical information'\nYou can also use the project slug for this"))]
24
-
project_id:String,
25
-
},
26
-
#[clap(about("Add a GitHub repository to the profile"))]
27
-
AddGithub{
28
-
#[clap(help("The repository owner's username"))]
29
-
owner:String,
30
-
#[clap(help("The name of the repository"))]
31
-
name:String,
32
-
},
33
-
#[clap(about("Add a CurseForge mod to the profile"))]
34
-
AddCurseforge{
35
-
#[clap(help("The project ID is specified at the right sidebar under 'About Project'"))]
36
-
project_id:i32,
37
-
},
38
-
#[clap(about("List all the mods in the profile, and with some their metadata if verbose"))]
39
-
List{
40
-
#[clap(long, short)]
41
-
#[clap(help("Show information about the mod"))]
42
-
verbose:bool,
43
-
},
44
-
#[clap(arg_required_else_help = true)]
45
-
#[clap(about("Create, configure, or remove the current profile"))]
46
-
Profile{
47
-
#[clap(subcommand)]
48
-
subcommand:ProfileSubCommands,
49
-
},
50
-
#[clap(about("Remove a mod or repository from the profile\nOptionally, provide a list of names of the mods to remove"))]
51
-
Remove{
52
-
#[clap(long)]
53
-
#[clap(name("mod-name"))]
54
-
#[clap(help("A case-insensitive name of a mod to remove\nYou can repeat this option to remove multiple mods\nIf one or more of the mod names provided does not exist, the program will error out without changing anything in the config"))]
55
-
mod_names:Option<Vec<String>>,
56
-
},
57
-
#[clap(about("Switch between different profiles\nOptionally, provide the name of the profile to switch to"))]
58
-
Switch{
59
-
#[clap(long)]
60
-
#[clap(help("The name of the profile to switch to"))]
61
-
profile_name:Option<String>,
62
-
},
63
-
#[clap(about("Sort all your mods in alphabetical order"))]
64
-
Sort,
65
-
#[clap(about("Download and install the latest version of the mods specified"))]
66
-
Upgrade{
67
-
#[clap(long)]
68
-
#[clap(help(
69
-
"Do not check for the full game version, only check for the major and minor versions
70
-
\rSome Minecraft versions (e.g. 1.18 & 1.18.1) are compatible with each other,
71
-
\rthis option allows you to use older, but still compatible, versions of a mod that might not have yet updated to the latest version"
72
-
))]
73
-
no_patch_check:bool,
74
-
},
21
+
#[clap(about("Add a Modrinth mod to the profile"))]
22
+
AddModrinth{
23
+
#[clap(help("The project ID is specified at the bottom of the left sidebar under 'Technical information'\nYou can also use the project slug for this"))]
24
+
project_id:String,
25
+
},
26
+
#[clap(about("Add a GitHub repository to the profile"))]
27
+
AddGithub{
28
+
#[clap(help("The repository owner's username"))]
29
+
owner:String,
30
+
#[clap(help("The name of the repository"))]
31
+
name:String,
32
+
},
33
+
#[clap(about("Add a CurseForge mod to the profile"))]
34
+
AddCurseforge{
35
+
#[clap(help("The project ID is specified at the right sidebar under 'About Project'"))]
36
+
project_id:i32,
37
+
},
38
+
#[clap(about("List all the mods in the profile, and with some their metadata if verbose"))]
39
+
List{
40
+
#[clap(long, short)]
41
+
#[clap(help("Show information about the mod"))]
42
+
verbose:bool,
43
+
},
44
+
#[clap(arg_required_else_help = true)]
45
+
#[clap(about("Create, configure, or remove the current profile"))]
46
+
Profile{
47
+
#[clap(subcommand)]
48
+
subcommand:ProfileSubCommands,
49
+
},
50
+
#[clap(about("Remove a mod or repository from the profile\nOptionally, provide a list of names of the mods to remove"))]
51
+
Remove{
52
+
#[clap(long)]
53
+
#[clap(name("mod-name"))]
54
+
#[clap(help("A case-insensitive name of a mod to remove\nYou can repeat this option to remove multiple mods\nIf one or more of the mod names provided does not exist, the program will error out without changing anything in the config"))]
55
+
mod_names:Option<Vec<String>>,
56
+
},
57
+
#[clap(about("Switch between different profiles\nOptionally, provide the name of the profile to switch to"))]
58
+
Switch{
59
+
#[clap(long)]
60
+
#[clap(help("The name of the profile to switch to"))]
61
+
profile_name:Option<String>,
62
+
},
63
+
#[clap(about("Sort all your mods in alphabetical order"))]
64
+
Sort,
65
+
#[clap(about("Download and install the latest version of the mods specified"))]
66
+
Upgrade{
67
+
#[clap(long)]
68
+
#[clap(help(
69
+
"Do not check for the full game version, only check for the major and minor versions
70
+
\rSome Minecraft versions (e.g. 1.18 & 1.18.1) are compatible with each other,
71
+
\rthis option allows you to use older, but still compatible, versions of a mod that might not have yet updated to the latest version"
72
+
))]
73
+
no_patch_check:bool,
74
+
},
75
75
}
76
76
77
77
#[derive(Subcommand)]
78
78
pubenumProfileSubCommands{
79
-
#[clap(about(
80
-
"Configure the current profile's Minecraft version, mod loader, and output directory\nOptionally, provide setting(s) to change as option(s)"
81
-
))]
82
-
Configure{
83
-
#[clap(long)]
84
-
#[clap(help("The Minecraft version to check compatibility for"))]
85
-
game_version:Option<String>,
86
-
#[clap(long)]
87
-
#[clap(arg_enum)]
88
-
#[clap(help("The mod loader to check compatibility for"))]
0 commit comments