feat: login

This commit is contained in:
Rogee
2024-09-02 14:50:51 +08:00
parent 97e0731e2e
commit d739ca0184
7 changed files with 80 additions and 51 deletions

View File

@@ -1,6 +1,8 @@
package internal
import (
"context"
"github.com/spf13/cobra"
)
@@ -8,7 +10,9 @@ func LoginCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "login",
Short: "login account",
RunE: wrapE(client.Login),
RunE: wrapE(func(ctx context.Context) error {
return client.Login(ctx)
}),
}
return cmd