[vscode-spring-cli]: project-catalog commands

This commit is contained in:
aboyko
2024-01-18 15:22:27 -05:00
parent b6d5e89e70
commit 78acd15d25
6 changed files with 205 additions and 30 deletions

View File

@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
"use strict";
import * as vscode from "vscode";
import { Cli } from "./cli/core";
import { handleAdd, handleNew } from "./boot-project/boot-project";
import { Cli } from "./cli";
import { handleBootAdd, handleBootNew } from "./boot";
import { handleCatalogAdd, handleCatalogRemove } from "./project-catalog";
export const CLI = new Cli();
export async function activate(context: vscode.ExtensionContext): Promise<void> {
vscode.commands.registerCommand('vscode-spring-cli.boot.new', handleNew);
vscode.commands.registerCommand('vscode-spring-cli.boot.add', handleAdd);
vscode.commands.registerCommand('vscode-spring-cli.boot.new', handleBootNew);
vscode.commands.registerCommand('vscode-spring-cli.boot.add', handleBootAdd);
vscode.commands.registerCommand('vscode-spring-cli.project-catalog.add', handleCatalogAdd);
vscode.commands.registerCommand('vscode-spring-cli.project-catalog.remove', handleCatalogRemove);
}
export async function deactivate(): Promise<void> {