mirror of
https://github.com/aljazceru/mcp-code.git
synced 2025-12-17 04:35:19 +01:00
initial commit
This commit is contained in:
18
commands/setup.ts
Normal file
18
commands/setup.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Command } from "commander";
|
||||
import { runConfigWizard } from "../wizard";
|
||||
import { readConfig } from "../config.js";
|
||||
|
||||
/**
|
||||
* Register the setup command with the Commander program
|
||||
* @param program The Commander program instance
|
||||
*/
|
||||
export function registerSetupCommand(program: Command) {
|
||||
program
|
||||
.command("setup")
|
||||
.description("Run the configuration wizard to set up MCP-Nostr")
|
||||
.action(async () => {
|
||||
const config = readConfig();
|
||||
await runConfigWizard(config);
|
||||
console.log("Setup complete! You can now use MCP-Nostr.");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user