mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
25 lines
433 B
Go
25 lines
433 B
Go
package auth
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
func NewAuthCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "auth",
|
|
Short: "Manage authentication (login, logout, status)",
|
|
RunE: func(cmd *cobra.Command, _ []string) error {
|
|
return cmd.Help()
|
|
},
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
newLoginCommand(),
|
|
newLogoutCommand(),
|
|
newStatusCommand(),
|
|
newModelsCommand(),
|
|
newWeixinCommand(),
|
|
newWeComCommand(),
|
|
)
|
|
|
|
return cmd
|
|
}
|