mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
d33d752bea
* fix(login): expire cookie on error with login
* feat: allows to unregister runner via cli
* feat(runner): add subcommands
* feat(runners): unregister command
* refactor(runner): move config to util.gol
* Revert "fix(login): expire cookie on error with login"
This reverts commit 6d726e3475
.
20 lines
269 B
Go
20 lines
269 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"os"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(runnerCmd)
|
|
}
|
|
|
|
var runnerCmd = &cobra.Command{
|
|
Use: "runner",
|
|
Short: "Run in runner mode",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
_ = cmd.Help()
|
|
os.Exit(0)
|
|
},
|
|
}
|