diff --git a/compiler/main.v b/compiler/main.v index 4151c54d1c..2e070936e9 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -125,12 +125,15 @@ fn main() { println('use `v install` to install modules from vpm.vlang.io') return } + if args.join(' ').contains(' test v') { + test_v() + return + } if 'install' in args { if args.len < 3 { println('usage: v install [module] [module] [...]') return } - names := args.slice(2, args.len) vexec := os.executable() vroot := os.dir(vexec) @@ -1430,3 +1433,7 @@ fn update_v() { } } +fn test_v() { + +} + diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 1be444de8c..064b1a84ed 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -81,7 +81,7 @@ pub fn run(port int) { conn := l.accept() or { panic('accept() failed') } - foobar() + //foobar() // TODO move this to handle_conn(conn, app) s := conn.read_line() if s == '' {