MCPcopy Create free account
hub / github.com/diced/dvm / pascal_pkg

Function pascal_pkg

src/path.rs:37–44  ·  view source on GitHub ↗
(branch: DiscordBranch)

Source from the content-addressed store, hash-verified

35}
36
37pub fn pascal_pkg(branch: DiscordBranch) -> &'static str {
38 match branch {
39 DiscordBranch::STABLE => "Discord",
40 DiscordBranch::PTB => "DiscordPTB",
41 DiscordBranch::CANARY => "DiscordCanary",
42 DiscordBranch::DEVELOPMENT => "DiscordDevelopment",
43 }
44}
45
46pub fn install_dir(branch: DiscordBranch) -> Res<PathBuf> {
47 Ok(dvm_dir()?.join(pascal_pkg(branch)))

Callers 3

install_versionFunction · 0.85
install_dirFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected