File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ dev-tools/*.vsix
24
24
typegate /workers
25
25
typegate /codegen
26
26
typegate /tests /prisma-migrations
27
+ typegate /tests /e2e /cli /prisma-migrations
27
28
typegate /tests /importers /copy /
28
29
.env
29
30
typegate /native /bindings.json
Original file line number Diff line number Diff line change @@ -62,17 +62,7 @@ fn main() -> Result<()> {
62
62
Some ( cli:: Commands :: Typegate ( cmd_args) ) => cli:: typegate:: command ( cmd_args, args. gen ) ?,
63
63
Some ( command) => actix:: run ( async move {
64
64
match command {
65
- cli:: Commands :: Codegen ( _) => {
66
- eprintln ! ( "codegen command is disabled for now" ) ;
67
- std:: process:: exit ( 0 )
68
- }
69
- cli:: Commands :: Undeploy ( _) | cli:: Commands :: Typegate ( _) => {
70
- command. run ( args. gen ) . await . unwrap_or_else ( |e| {
71
- error ! ( "{}" , e. to_string( ) ) ;
72
- std:: process:: exit ( 1 ) ;
73
- } ) ;
74
- }
75
- _ => {
65
+ cli:: Commands :: Serialize ( _) | cli:: Commands :: Dev ( _) | cli:: Commands :: Deploy ( _) => {
76
66
std:: env:: set_var ( "META_CLI_SERVER_PORT" , get_instance_port ( ) . to_string ( ) ) ;
77
67
78
68
let command = command. run ( args. gen ) ;
@@ -82,6 +72,16 @@ fn main() -> Result<()> {
82
72
std:: process:: exit ( 1 ) ;
83
73
} ) ;
84
74
}
75
+ cli:: Commands :: Codegen ( _) => {
76
+ eprintln ! ( "codegen command is disabled for now" ) ;
77
+ std:: process:: exit ( 0 )
78
+ }
79
+ _ => {
80
+ command. run ( args. gen ) . await . unwrap_or_else ( |e| {
81
+ error ! ( "{}" , e. to_string( ) ) ;
82
+ std:: process:: exit ( 1 ) ;
83
+ } ) ;
84
+ }
85
85
}
86
86
} ) ?,
87
87
None => Args :: command ( ) . print_help ( ) ?,
You can’t perform that action at this time.
0 commit comments