forked from jfrog/jfrog-docker-desktop-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed echos and console logs from code
- Loading branch information
Showing
5 changed files
with
3 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
@ECHO OFF | ||
|
||
:: Prints the extension configuration to stdout (in JSON format). | ||
|
||
set "HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension" | ||
set "CONF_FILE=%HOME_DIR%\jfrog-docker-desktop-extension.conf" | ||
|
||
:: Debug: Echo the paths to ensure they are correct. | ||
:: Use quotes around the CONF_FILE variable to handle paths with spaces. | ||
type "%CONF_FILE%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
@ECHO OFF | ||
|
||
:: Runs JFrog CLI with the given arguments. The JFrog CLI's home directory is the extension's home directory. | ||
|
||
set "HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension" | ||
set "LOGS_DIR=%HOME_DIR%\logs" | ||
|
||
set "JFROG_CLI_HOME_DIR=%HOME_DIR%" | ||
set JFROG_CLI_USER_AGENT=jfrog-docker-extension | ||
set JFROG_CLI_LOG_LEVEL=DEBUG | ||
set CI=true | ||
|
||
:: Debug: Echo the paths and enviro | ||
|
||
:: Create logs directory if it doesn't exist, handling paths with spaces. | ||
if not exist "%LOGS_DIR%" mkdir "%LOGS_DIR%" | ||
|
||
:: Get the current datetime in a specific format for the log file name. | ||
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I | ||
set LOG_FILE_PATH=%LOGS_DIR%\jfrog-docker-desktop-extension.%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2%.%datetime:~8,2%-%datetime:~10,2%.log | ||
:: Debug: Echo the log file path | ||
|
||
:: Run the JFrog CLI with the given arguments, redirecting stderr to the log file. | ||
"%~dp0/jf" %* 2>> "%LOG_FILE_PATH%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
@ECHO OFF | ||
|
||
:: Gets the extension configuration (in JSON format) as an argument and writes it to the configuration file. | ||
|
||
set "HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension" | ||
set "CONF_FILE=%HOME_DIR%\jfrog-docker-desktop-extension.conf" | ||
|
||
:: Debug: Echo the HOME_DIR and CONF_FILE paths | ||
echo HOME_DIR is set to: "%HOME_DIR%" | ||
echo CONF_FILE is set to: "%CONF_FILE%" | ||
|
||
:: Create the HOME_DIR if it doesn't exist, handling paths with spaces | ||
if not exist "%HOME_DIR%" mkdir "%HOME_DIR%" | ||
|
||
:: Write the provided configuration to the CONF_FILE, handling paths with spaces | ||
echo %* > "%CONF_FILE%" | ||
|
||
:: Debug: Echo the content written to the configuration file | ||
echo Configuration written to %CONF_FILE%: | ||
type "%CONF_FILE%" | ||
echo %* > "%CONF_FILE%" |