Skip to content

Commit d02ef50

Browse files
committed
removed artifcatory top level commands for ide
1 parent 56ba563 commit d02ef50

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

cli/cli.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ package cli
22

33
import (
44
artifactoryCLI "github.com/jfrog/jfrog-cli-artifactory/artifactory/cli"
5-
"github.com/jfrog/jfrog-cli-artifactory/artifactory/cli/ide"
6-
"github.com/jfrog/jfrog-cli-artifactory/artifactory/cli/ide/jetbrains"
7-
"github.com/jfrog/jfrog-cli-artifactory/artifactory/cli/ide/vscode"
85
distributionCLI "github.com/jfrog/jfrog-cli-artifactory/distribution/cli"
96
evidenceCLI "github.com/jfrog/jfrog-cli-artifactory/evidence/cli"
107
ideCLI "github.com/jfrog/jfrog-cli-artifactory/ide/cli"
@@ -44,26 +41,5 @@ func GetJfrogCliArtifactoryApp() components.App {
4441
})
4542
app.Commands = append(app.Commands, lifecycle.GetCommands()...)
4643

47-
// Add IDE commands as top-level commands
48-
app.Commands = append(app.Commands, getTopLevelIDECommands()...)
49-
5044
return app
5145
}
52-
53-
// getTopLevelIDECommands returns IDE commands configured for top-level access
54-
func getTopLevelIDECommands() []components.Command {
55-
// Get the original IDE commands
56-
vscodeCommands := vscode.GetCommands()
57-
jetbrainsCommands := jetbrains.GetCommands()
58-
59-
// Use centralized descriptions
60-
if len(vscodeCommands) > 0 {
61-
vscodeCommands[0].Description = ide.VscodeConfigDescription
62-
}
63-
if len(jetbrainsCommands) > 0 {
64-
jetbrainsCommands[0].Description = ide.JetbrainsConfigDescription
65-
jetbrainsCommands[0].Aliases = append(jetbrainsCommands[0].Aliases, "jb")
66-
}
67-
68-
return append(vscodeCommands, jetbrainsCommands...)
69-
}

cli/cli_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ import (
1010
func TestGetJfrogCliArtifactoryApp(t *testing.T) {
1111
app := GetJfrogCliArtifactoryApp()
1212

13-
// Verify app has top-level IDE commands
14-
ideCommands := []string{"vscode-config", "jetbrains-config"}
15-
for _, cmdName := range ideCommands {
16-
cmd := findCommandByName(app.Commands, cmdName)
17-
assert.NotNil(t, cmd, "Top-level command %s should be found", cmdName)
18-
}
19-
2013
// Verify rt namespace doesn't have IDE commands anymore
2114
rtNamespace := findNamespaceByName(app.Subcommands, "rt")
2215
assert.NotNil(t, rtNamespace, "rt namespace should exist")

0 commit comments

Comments
 (0)