"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/cli/atom.cmd" (8 Mar 2017, 1132 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 
    3 SET EXPECT_OUTPUT=
    4 SET WAIT=
    5 SET PSARGS=%*
    6 
    7 FOR %%a IN (%*) DO (
    8   IF /I "%%a"=="-f"               SET EXPECT_OUTPUT=YES
    9   IF /I "%%a"=="--foreground"     SET EXPECT_OUTPUT=YES
   10   IF /I "%%a"=="-h"               SET EXPECT_OUTPUT=YES
   11   IF /I "%%a"=="--help"           SET EXPECT_OUTPUT=YES
   12   IF /I "%%a"=="-t"               SET EXPECT_OUTPUT=YES
   13   IF /I "%%a"=="--test"           SET EXPECT_OUTPUT=YES
   14   IF /I "%%a"=="--benchmark"      SET EXPECT_OUTPUT=YES
   15   IF /I "%%a"=="--benchmark-test" SET EXPECT_OUTPUT=YES
   16   IF /I "%%a"=="-v"               SET EXPECT_OUTPUT=YES
   17   IF /I "%%a"=="--version"        SET EXPECT_OUTPUT=YES
   18   IF /I "%%a"=="-w"           (
   19     SET EXPECT_OUTPUT=YES
   20     SET WAIT=YES
   21   )
   22   IF /I "%%a"=="--wait"       (
   23     SET EXPECT_OUTPUT=YES
   24     SET WAIT=YES
   25   )
   26 )
   27 
   28 IF "%EXPECT_OUTPUT%"=="YES" (
   29   SET ELECTRON_ENABLE_LOGGING=YES
   30   IF "%WAIT%"=="YES" (
   31     powershell -noexit "Start-Process -FilePath \"%~dp0\..\..\atom.exe\" -ArgumentList \"--pid=$pid $env:PSARGS\" ; wait-event"
   32     exit 0
   33   ) ELSE (
   34     "%~dp0\..\..\atom.exe" %*
   35   )
   36 ) ELSE (
   37   "%~dp0\..\app\apm\bin\node.exe" "%~dp0\atom.js" %*
   38 )