|
| 1 | +package ide |
| 2 | + |
| 3 | +const VscodeConfigDescription = ` |
| 4 | +Configure VSCode to use JFrog Artifactory for extensions. |
| 5 | +
|
| 6 | +The service URL should be in the format: |
| 7 | +https://<artifactory-url>/artifactory/api/vscodeextensions/<repo-key>/_apis/public/gallery |
| 8 | +
|
| 9 | +Examples: |
| 10 | + jf vscode-config https://mycompany.jfrog.io/artifactory/api/vscodeextensions/vscode-extensions/_apis/public/gallery |
| 11 | +
|
| 12 | +This command will: |
| 13 | +- Modify the VSCode product.json file to change the extensions gallery URL |
| 14 | +- Create an automatic backup before making changes |
| 15 | +- Require VSCode to be restarted to apply changes |
| 16 | +
|
| 17 | +Optional: Provide server configuration flags (--url, --user, --password, --access-token, or --server-id) |
| 18 | +to enable repository validation. Without these flags, the command will only modify the local VSCode configuration. |
| 19 | +
|
| 20 | +Note: On macOS/Linux, you may need to run with sudo for system-installed VSCode. |
| 21 | +` |
| 22 | + |
| 23 | +const JetbrainsConfigDescription = ` |
| 24 | +Configure JetBrains IDEs to use JFrog Artifactory for plugins. |
| 25 | +
|
| 26 | +The repository URL should be in the format: |
| 27 | +https://<artifactory-url>/artifactory/api/jetbrainsplugins/<repo-key> |
| 28 | +
|
| 29 | +Examples: |
| 30 | + jf jetbrains-config https://mycompany.jfrog.io/artifactory/api/jetbrainsplugins/jetbrains-plugins |
| 31 | +
|
| 32 | +This command will: |
| 33 | +- Detect all installed JetBrains IDEs |
| 34 | +- Modify each IDE's idea.properties file to add the plugins repository URL |
| 35 | +- Create automatic backups before making changes |
| 36 | +- Require IDEs to be restarted to apply changes |
| 37 | +
|
| 38 | +Optional: Provide server configuration flags (--url, --user, --password, --access-token, or --server-id) |
| 39 | +to enable repository validation. Without these flags, the command will only modify the local IDE configuration. |
| 40 | +
|
| 41 | +Supported IDEs: IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, RubyMine, CLion, DataGrip, GoLand, Rider, Android Studio, AppCode, RustRover, Aqua |
| 42 | +` |
0 commit comments