This commit is contained in:
Rogee
2024-09-04 17:37:43 +08:00
parent 843355f4a0
commit c34547a3f1
6 changed files with 19 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ package internal
import (
"context"
"fmt"
"log"
"exporter/config"
@@ -14,8 +14,8 @@ func LoginCmd() *cobra.Command {
Use: "login",
Short: "login account",
PreRunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("init client")
defer fmt.Println("init client done")
log.Println("init client")
defer log.Println("init client done")
return InitClient(config.C)
},
RunE: wrapE(func(ctx context.Context) error {