mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-12 20:53:37 +00:00
robot: Make linter happy
This commit is contained in:
committed by
Itxaka
parent
bc7c3b95dc
commit
c8244f7dbd
@@ -1,8 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
//"fmt"
|
||||
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
@@ -268,7 +266,7 @@ This command is meant to be used from the boot GRUB menu, but can be started man
|
||||
Description: `
|
||||
Starts c3os recovery mode.
|
||||
|
||||
In recovery mode a QR code will be printed out on the screen which should be used in conjuction with "c3os bridge". Pass by the QR code as snapshot
|
||||
In recovery mode a QR code will be printed out on the screen which should be used in conjunction with "c3os bridge". Pass by the QR code as snapshot
|
||||
to the bridge to connect over the machine which runs the "c3os recovery" command.
|
||||
|
||||
See also https://docs.c3os.io/after_install/recovery_mode/ for documentation.
|
||||
|
@@ -112,7 +112,7 @@ func bridge(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
go api.API(ctx, c.String("api"), 5*time.Second, 20*time.Second, e, nil, false)
|
||||
go api.API(ctx, c.String("api"), 5*time.Second, 20*time.Second, e, nil, false) //nolint:errcheck
|
||||
|
||||
return e.Start(ctx)
|
||||
}
|
||||
|
@@ -1,8 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
//"fmt"
|
||||
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/c3os-io/c3os/internal/provider"
|
||||
@@ -21,5 +22,9 @@ func main() {
|
||||
// Expected output: string
|
||||
factory.Add(bus.EventChallenge, provider.Challenge)
|
||||
|
||||
factory.Run(pluggable.EventType(os.Args[1]), os.Stdin, os.Stdout)
|
||||
err := factory.Run(pluggable.EventType(os.Args[1]), os.Stdin, os.Stdout)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user