mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-27 21:48:48 +02:00
add support for modules.
This commit is contained in:
parent
5b69413e01
commit
b197bb303e
5 changed files with 23 additions and 7 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
|
||||
"demodesk/neko"
|
||||
"demodesk/neko/modules"
|
||||
"demodesk/neko/internal/config"
|
||||
)
|
||||
|
||||
|
@ -16,13 +17,13 @@ func init() {
|
|||
Run: neko.Service.ServeCommand,
|
||||
}
|
||||
|
||||
configs := []config.Config{
|
||||
configs := append([]config.Config{
|
||||
neko.Service.Configs.Desktop,
|
||||
neko.Service.Configs.Capture,
|
||||
neko.Service.Configs.WebRTC,
|
||||
neko.Service.Configs.Session,
|
||||
neko.Service.Configs.Server,
|
||||
}
|
||||
}, modules.ConfigsList()...)
|
||||
|
||||
cobra.OnInitialize(func() {
|
||||
for _, cfg := range configs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue