You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
components.NewStringFlag("url-suffix", "Suffix for the URL. Optional.", components.SetMandatoryFalse()),
50
37
51
38
// VSCode-specific flags
52
-
components.NewStringFlag("product-json-path", "Path to VSCode/Cursor/Windsurf product.json file. If not provided, auto-detects installation.", components.SetMandatoryFalse()),
53
-
components.NewStringFlag("update-mode", "VSCode update mode: 'default' (auto-update), 'manual' (prompt for updates), or 'none' (disable updates). Only for VSCode-based IDEs.", components.SetMandatoryFalse()),
39
+
components.NewStringFlag("product-json-path", fmt.Sprintf("Path to %s product.json file. If not provided, auto-detects installation.", ideconsts.GetVSCodeBasedIDEsString()), components.SetMandatoryFalse()),
40
+
components.NewStringFlag("update-mode", "Update mode: 'default' (auto-update), 'manual' (prompt for updates), or 'none' (disable updates). Only for VSCode-based IDEs.", components.SetMandatoryFalse()),
54
41
}
55
42
56
43
returnappend(flags, ideSpecificFlags...)
57
44
}
58
45
59
46
funcsetupCmd(ctx*components.Context) error {
60
47
ifctx.GetNumberOfArgs() ==0 {
61
-
returnfmt.Errorf("IDE_NAME is required. Usage: jf ide setup <IDE_NAME>\nSupported IDEs: %s", getSupportedIDEs())
48
+
returnfmt.Errorf("IDE_NAME is required. Usage: jf ide setup <IDE_NAME>\nSupported IDEs: %s", ideconsts.GetSupportedIDEsString())
62
49
}
63
50
64
-
ideName:=strings.ToLower(ctx.GetArgumentAt(0))
51
+
ideName:=ctx.GetArgumentAt(0)
65
52
log.Debug(fmt.Sprintf("Setting up IDE: %s", ideName))
0 commit comments