20 lines
269 B
Go
20 lines
269 B
Go
package internal
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func LoginCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "login",
|
|
Short: "login account",
|
|
RunE: wrapE(func(ctx context.Context) error {
|
|
return client.Login(ctx)
|
|
}),
|
|
}
|
|
|
|
return cmd
|
|
}
|