summaryrefslogtreecommitdiff
path: root/hyprpm/src/main.cpp
diff options
context:
space:
mode:
authorLuke Barkess <57995669+Brumus14@users.noreply.github.com>2025-12-14 17:16:58 +0000
committerGitHub <noreply@github.com>2025-12-14 17:16:58 +0000
commit05ccbb2f2dc3121a48e9c1925357039b27d22a92 (patch)
treea5bb42acf7343c32b54ae93956b521c60739c9d3 /hyprpm/src/main.cpp
parent09e195d1f293a876ce21a077af3d7c5047881b79 (diff)
hyprpm: added plugin author (#12594)
Diffstat (limited to 'hyprpm/src/main.cpp')
-rw-r--r--hyprpm/src/main.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/hyprpm/src/main.cpp b/hyprpm/src/main.cpp
index 817049ff..dced58e7 100644
--- a/hyprpm/src/main.cpp
+++ b/hyprpm/src/main.cpp
@@ -13,25 +13,25 @@ using namespace Hyprutils::Utils;
constexpr std::string_view HELP = R"#(┏ hyprpm, a Hyprland Plugin Manager
┃
-┣ add [url] [git rev] → Install a new plugin repository from git. Git revision
-┃ is optional, when set, commit locks are ignored.
-┣ remove [url/name] → Remove an installed plugin repository.
-┣ enable [name] → Enable a plugin.
-┣ disable [name] → Disable a plugin.
-┣ update → Check and update all plugins if needed.
-┣ reload → Reload hyprpm state. Ensure all enabled plugins are loaded.
-┣ list → List all installed plugins.
-┣ purge-cache → Remove the entire hyprpm cache, built plugins, hyprpm settings and headers.
+┣ add <url> [git rev] → Install a new plugin repository from git. Git revision
+┃ is optional, when set, commit locks are ignored.
+┣ remove <url|name|author/name> → Remove an installed plugin repository.
+┣ enable <name|author/name> → Enable a plugin.
+┣ disable <name|author/name> → Disable a plugin.
+┣ update → Check and update all plugins if needed.
+┣ reload → Reload hyprpm state. Ensure all enabled plugins are loaded.
+┣ list → List all installed plugins.
+┣ purge-cache → Remove the entire hyprpm cache, built plugins, hyprpm settings and headers.
┃
┣ Flags:
┃
-┣ --notify | -n → Send a hyprland notification confirming successful plugin load.
-┃ Warnings/Errors trigger notifications regardless of this flag.
-┣ --help | -h → Show this menu.
-┣ --verbose | -v → Enable too much logging.
-┣ --force | -f → Force an operation ignoring checks (e.g. update -f).
-┣ --no-shallow | -s → Disable shallow cloning of Hyprland sources.
-┣ --hl-url | → Pass a custom hyprland source url.
+┣ --notify | -n → Send a hyprland notification confirming successful plugin load.
+┃ Warnings/Errors trigger notifications regardless of this flag.
+┣ --help | -h → Show this menu.
+┣ --verbose | -v → Enable too much logging.
+┣ --force | -f → Force an operation ignoring checks (e.g. update -f).
+┣ --no-shallow | -s → Disable shallow cloning of Hyprland sources.
+┣ --hl-url | → Pass a custom hyprland source url.
┗
)#";
@@ -126,7 +126,7 @@ int main(int argc, char** argv, char** envp) {
NSys::root::cacheSudo();
CScopeGuard x([] { NSys::root::dropSudo(); });
- return g_pPluginManager->removePluginRepo(command[1]) ? 0 : 1;
+ return g_pPluginManager->removePluginRepo(SPluginRepoIdentifier::fromString(command[1])) ? 0 : 1;
} else if (command[0] == "update") {
NSys::root::cacheSudo();
CScopeGuard x([] { NSys::root::dropSudo(); });
@@ -160,7 +160,7 @@ int main(int argc, char** argv, char** envp) {
return 1;
}
- if (!g_pPluginManager->enablePlugin(command[1])) {
+ if (!g_pPluginManager->enablePlugin(SPluginRepoIdentifier::fromString(command[1]))) {
std::println(stderr, "{}", failureString("Couldn't enable plugin (missing?)"));
return 1;
}
@@ -181,7 +181,7 @@ int main(int argc, char** argv, char** envp) {
return 1;
}
- if (!g_pPluginManager->disablePlugin(command[1])) {
+ if (!g_pPluginManager->disablePlugin(SPluginRepoIdentifier::fromString(command[1]))) {
std::println(stderr, "{}", failureString("Couldn't disable plugin (missing?)"));
return 1;
}