Skip to content

Replace NewCascadeDeleter positional arguments with a config struct #1848

Description

@whoAbhishekSah

NewCascadeDeleter takes 17 positional dependencies after the org-delete cleanup stack (#1838). Every new dependency is appended positionally, which is easy to get wrong since several arguments share the same interface shape.

Replace the positional list with a struct (e.g. deleter.Deps) so construction is named and order-independent.

Raised in review: #1838 (comment)

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions