koatty_cli
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -396,2 +396,7 @@ #!/usr/bin/env node | ||
//create model | ||
commander.command('model <modelName>').description('add model').action(function (model) { | ||
createModel(model); | ||
}); | ||
commander.parse(process.argv); |
@@ -5,3 +5,3 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-16 18:31:35 | ||
* @ version: 2019-10-17 11:04:01 | ||
*/ | ||
@@ -14,4 +14,4 @@ import * as Koa from "Koa"; | ||
export class IndexController extends BaseController { | ||
public ctx: Koa.BaseContext; | ||
public app: App; | ||
app: App; | ||
protected ctx: Koa.BaseContext; | ||
@@ -18,0 +18,0 @@ init() { |
@@ -5,3 +5,3 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-16 18:32:48 | ||
* @ version: 2019-10-17 11:04:06 | ||
*/ | ||
@@ -14,4 +14,4 @@ import * as Koa from "Koa"; | ||
export class <NewController> extends BaseController { | ||
public ctx: Koa.BaseContext; | ||
public app: App; | ||
app: App; | ||
protected ctx: Koa.BaseContext; | ||
@@ -18,0 +18,0 @@ init() { |
@@ -5,3 +5,3 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-16 18:32:06 | ||
* @ version: 2019-10-17 11:04:33 | ||
*/ | ||
@@ -13,12 +13,10 @@ import { App } from "../App"; | ||
export class <Service> { | ||
public app: App; | ||
app: App; | ||
// @Autowired() | ||
// private testService2: TestService2; | ||
// @Autowired() | ||
// private testService3: TestService3; | ||
public sayHello() { | ||
console.log(this.app.app_debug); | ||
console.log('TestService.sayHello!'); | ||
test() { | ||
console.log('TestService.test!'); | ||
return ""; | ||
} | ||
} |
{ | ||
"name": "koatty_cli", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Koatty command line tool.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
58073
603