ci: run gitly
parent
0455632b1f
commit
f879b3e221
|
@ -870,6 +870,7 @@ jobs:
|
||||||
git clone --depth 1 https://github.com/vlang/gitly
|
git clone --depth 1 https://github.com/vlang/gitly
|
||||||
cd gitly
|
cd gitly
|
||||||
../v .
|
../v .
|
||||||
|
./gitly -ci_run
|
||||||
../v -autofree .
|
../v -autofree .
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,9 @@ struct MultiplePathAttributesError {
|
||||||
}
|
}
|
||||||
|
|
||||||
// declaring init_server in your App struct is optional
|
// declaring init_server in your App struct is optional
|
||||||
pub fn (ctx Context) init_server() {}
|
pub fn (ctx Context) init_server() {
|
||||||
|
eprintln('init_server() has been deprecated, please init your web app in `fn main()`')
|
||||||
|
}
|
||||||
|
|
||||||
// declaring before_request in your App struct is optional
|
// declaring before_request in your App struct is optional
|
||||||
pub fn (ctx Context) before_request() {}
|
pub fn (ctx Context) before_request() {}
|
||||||
|
@ -275,7 +277,6 @@ interface DbInterface {
|
||||||
// run_app
|
// run_app
|
||||||
[manualfree]
|
[manualfree]
|
||||||
pub fn run<T>(global_app &T, port int) {
|
pub fn run<T>(global_app &T, port int) {
|
||||||
// x := global_app.clone()
|
|
||||||
// mut global_app := &T{}
|
// mut global_app := &T{}
|
||||||
// mut app := &T{}
|
// mut app := &T{}
|
||||||
// run_app<T>(mut app, port)
|
// run_app<T>(mut app, port)
|
||||||
|
@ -287,7 +288,9 @@ pub fn run<T>(global_app &T, port int) {
|
||||||
// conn: 0
|
// conn: 0
|
||||||
//}
|
//}
|
||||||
// app.init_server()
|
// app.init_server()
|
||||||
|
// unsafe {
|
||||||
// global_app.init_server()
|
// global_app.init_server()
|
||||||
|
//}
|
||||||
//$for method in T.methods {
|
//$for method in T.methods {
|
||||||
//$if method.return_type is Result {
|
//$if method.return_type is Result {
|
||||||
// check routes for validity
|
// check routes for validity
|
||||||
|
|
Loading…
Reference in New Issue