Skip to content

Commit 88a329b

Browse files
committed
feat: Implement core, project, dependency, registry, and utility prm commands.
1 parent d591fab commit 88a329b

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/prm/commands/cmd_core.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdio.h>
22
#include <stdlib.h>
3+
#include <string.h>
34
#include "../prm.h"
45

56
// --- Core ---
@@ -136,11 +137,19 @@ void prm_cache(const char* action) {
136137
}
137138

138139
void prm_link(const char* packageName) {
139-
printf("Linking local package...\n");
140+
if (packageName) {
141+
printf("Linking local package '%s'...\n", packageName);
142+
} else {
143+
printf("Linking current package to global registry...\n");
144+
}
140145
}
141146

142147
void prm_unlink(const char* packageName) {
143-
printf("Unlinking package...\n");
148+
if (packageName) {
149+
printf("Unlinking package '%s'...\n", packageName);
150+
} else {
151+
printf("Unlinking current package from global registry...\n");
152+
}
144153
}
145154

146155
void prm_doc() {

0 commit comments

Comments
 (0)