1package cmd23import (4 "github.com/charmbracelet/soft-serve/pkg/backend"5 "github.com/spf13/cobra"6)78func deleteCommand() *cobra.Command {9 cmd := &cobra.Command{10 Use: "delete REPOSITORY",11 Aliases: []string{"del", "remove", "rm"},12 Short: "Delete a repository",13 Args: cobra.ExactArgs(1),14 PersistentPreRunE: checkIfReadableAndCollab,15 RunE: func(cmd *cobra.Command, args []string) error {16 ctx := cmd.Context()17 be := backend.FromContext(ctx)18 name := args[0]1920 return be.DeleteRepository(ctx, name)21 },22 }2324 return cmd25}