Further rebranding to Forgejo

This commit is contained in:
crystal 2023-02-28 15:38:58 -07:00
parent 6b85bb17d1
commit 9d3406c31d
No known key found for this signature in database
GPG key ID: 1122054731F7CC43
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ func Execute(ctx context.Context) {
RunE: runRegister(ctx, &regArgs, gArgs.EnvFile), // must use a pointer to regArgs RunE: runRegister(ctx, &regArgs, gArgs.EnvFile), // must use a pointer to regArgs
} }
registerCmd.Flags().BoolVar(&regArgs.NoInteractive, "no-interactive", false, "Disable interactive mode") registerCmd.Flags().BoolVar(&regArgs.NoInteractive, "no-interactive", false, "Disable interactive mode")
registerCmd.Flags().StringVar(&regArgs.InstanceAddr, "instance", "", "Gitea instance address") registerCmd.Flags().StringVar(&regArgs.InstanceAddr, "instance", "", "Forgejo instance address")
registerCmd.Flags().BoolVar(&regArgs.Insecure, "insecure", false, "If check server's certificate if it's https protocol") registerCmd.Flags().BoolVar(&regArgs.Insecure, "insecure", false, "If check server's certificate if it's https protocol")
registerCmd.Flags().StringVar(&regArgs.Token, "token", "", "Runner token") registerCmd.Flags().StringVar(&regArgs.Token, "token", "", "Runner token")
registerCmd.Flags().StringVar(&regArgs.RunnerName, "name", "", "Runner name") registerCmd.Flags().StringVar(&regArgs.RunnerName, "name", "", "Runner name")

View file

@ -288,11 +288,11 @@ func doRegister(cfg *config.Config, inputs *registerInputs) error {
} }
if err != nil { if err != nil {
log.WithError(err). log.WithError(err).
Errorln("Cannot ping the Gitea instance server") Errorln("Cannot ping the Forgejo instance server")
// TODO: if ping failed, retry or exit // TODO: if ping failed, retry or exit
time.Sleep(time.Second) time.Sleep(time.Second)
} else { } else {
log.Debugln("Successfully pinged the Gitea instance server") log.Debugln("Successfully pinged the Forgejo instance server")
break break
} }
} }