feat: login
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user