feat(cli): add register command basic functions

This commit is contained in:
fuxiaohei authored and Jason Song committed 2022-11-24 15:38:02 +08:00
1 parent 88ae188699
commit 561bfad7c5
2 files changed
+48 -9

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
package cmd
import (
"context"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
// runRegister registers a runner to the server
func runRegister(ctx context.Context, regArgs *registerArgs) func(*cobra.Command, []string) error {
return func(cmd *cobra.Command, args []string) error {
log.Infoln("Starting register to gitea instance")
return nil
}
}
// registerArgs represents the arguments for register command
type registerArgs struct {
NoInteractive bool
InstanceAddr string
Token string
}