Skip to content

Attach the lifecycle to existing nested and lazy Click command trees #57

Description

@codeforester

Parent: #50

Train position: 7 of 22
Phase: P1 — Incremental adoption

Problem

Adoption currently requires rebuilding commands around App; established Click applications need an incremental, composition-preserving integration path.

Acceptance criteria

  • A public attach(click.Command) API and/or lifecycle-aware Click Command/Group classes preserve callbacks, parameters, context settings, names, help, and third-party commands.
  • Nested groups, aliases, prebuilt commands, and lazy command providers work without eager import or enumeration.
  • Lifecycle middleware and an optional context/service factory are available at documented extension points.
  • The lifecycle runs exactly once for the selected leaf without duplicate standard options.
  • Representative existing Click trees are integration-tested.

Dependencies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or product improvement

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions