25 lines
442 B
Go
25 lines
442 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/afero"
|
|
"github.com/spf13/cobra"
|
|
"github.com/supabase/cli/internal/logout"
|
|
)
|
|
|
|
var (
|
|
logoutCmd = &cobra.Command{
|
|
GroupID: groupLocalDev,
|
|
Use: "logout",
|
|
Short: "Log out and delete access tokens locally",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return logout.Run(cmd.Context(), os.Stdout, afero.NewOsFs())
|
|
},
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(logoutCmd)
|
|
}
|