File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
"encoding/json"
6
6
"fmt"
7
7
"runtime"
8
+ "strings"
8
9
"time"
9
10
10
11
"github.com/microsoft/typescript-go/internal/ast"
@@ -19,6 +20,16 @@ import (
19
20
type cbType = func (p any ) any
20
21
21
22
func CommandLine (sys System , cb cbType , commandLineArgs []string ) ExitStatus {
23
+ if len (commandLineArgs ) > 0 {
24
+ // !!! build mode
25
+ switch strings .ToLower (commandLineArgs [0 ]) {
26
+ case "-b" , "--b" , "-build" , "--build" :
27
+ fmt .Fprint (sys .Writer (), "Build mode is currently unsupported." + sys .NewLine ())
28
+ sys .EndWrite ()
29
+ return ExitStatusNotImplemented
30
+ }
31
+ }
32
+
22
33
parsedCommandLine := tsoptions .ParseCommandLine (commandLineArgs , sys )
23
34
e , watcher := executeCommandLineWorker (sys , cb , parsedCommandLine )
24
35
if watcher == nil {
You can’t perform that action at this time.
0 commit comments