-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
main.go
executable file
·32 lines (29 loc) · 771 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main
import (
"github.com/confetti-framework/framework/inter"
"os"
"src/bootstrap"
)
func main() {
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
|
|
*/
app := bootstrap.NewAppFromBoot()
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the command
| through the kernel.
|
*/
kernel := app.Make((*inter.ConsoleKernel)(nil)).(inter.ConsoleKernel)
code := kernel.Handle()
os.Exit(int(code))
}