mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-05-11 18:06:43 +00:00
seedling: Webui installer (#587)
* 🌱 Add webui Signed-off-by: mudler <mudler@c3os.io> * 🌱 Re-read config files after loading bundles Signed-off-by: mudler <mudler@c3os.io> * [check-spelling] Update metadata Update for https://github.com/kairos-io/kairos/actions/runs/3806058276/attempts/1 Accepted in https://github.com/kairos-io/kairos/pull/587#issuecomment-1367859480 Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com> Signed-off-by: mudler <mudler@c3os.io> * 🎨 Beautify index page Signed-off-by: mudler <mudler@c3os.io> * Do not rerun if we were successful or we are already running Signed-off-by: mudler <mudler@c3os.io> * Add syntax highlight Signed-off-by: mudler <mudler@c3os.io> * Add error message Signed-off-by: mudler <mudler@c3os.io> * Add YAML validation and highlight Signed-off-by: mudler <mudler@c3os.io> * Fixup terminal output Signed-off-by: mudler <mudler@c3os.io> * Fix newlines Signed-off-by: mudler <mudler@c3os.io> * fixups Signed-off-by: mudler <mudler@c3os.io> * 🎨 Fixup lint issues Signed-off-by: mudler <mudler@c3os.io> * Mark dependencies Signed-off-by: mudler <mudler@c3os.io> * Let configure the listening address Signed-off-by: mudler <mudler@c3os.io> Signed-off-by: mudler <mudler@c3os.io> Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
This commit is contained in:
parent
3b90b1a482
commit
8a615c430e
@ -1,11 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
agent "github.com/kairos-io/kairos/internal/agent"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/internal/webui"
|
||||
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
machine "github.com/kairos-io/kairos/pkg/machine"
|
||||
@ -182,6 +184,16 @@ E.g. kairos-agent install-bundle container:quay.io/kairos/kairos...
|
||||
return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "webui",
|
||||
Usage: "Starts the webui",
|
||||
Description: "Starts the webui installer",
|
||||
Aliases: []string{"w"},
|
||||
Action: func(c *cli.Context) error {
|
||||
return webui.Start(context.Background())
|
||||
//return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "config",
|
||||
Usage: "get machine configuration",
|
||||
|
Loading…
Reference in New Issue
Block a user