Update to latest @extollo/lib & add contact API
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Application, CommandLineApplication} from '@extollo/lib'
|
||||
import {Application, CommandLineApplication, Foreground} from '@extollo/lib'
|
||||
import {Units} from './Units.extollo'
|
||||
|
||||
/*
|
||||
@@ -22,12 +22,7 @@ export function cli(): Application {
|
||||
const app = Application.getApplication()
|
||||
app.forceStartupMessage = false
|
||||
|
||||
const units = [...Units]
|
||||
|
||||
units.reverse()
|
||||
CommandLineApplication.setReplacement(units[0])
|
||||
units[0] = CommandLineApplication
|
||||
units.reverse()
|
||||
const units = [...Units, CommandLineApplication]
|
||||
|
||||
app.scaffold(__dirname, units)
|
||||
return app
|
||||
@@ -38,6 +33,10 @@ export function cli(): Application {
|
||||
*/
|
||||
export function app(): Application {
|
||||
const app = Application.getApplication()
|
||||
app.scaffold(__dirname, Units)
|
||||
|
||||
const units = [...Units]
|
||||
units.push(Foreground)
|
||||
|
||||
app.scaffold(__dirname, units)
|
||||
return app
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user