Skip to content

Consolidate all Context code into Command #1587

Closed

Description

@meatballhat

(wild generalizations warning) The Context struct exists for reasons mostly related to the use of stdlib flag and has a concept of "lineage" that forms a tree with other Context nodes. I would like to see this lineage relationship move to Command given the existence of .Commands for traversing outward, and for Command to be the source of truth for values that are fetched via the type-specific flag accessor functions like .String(string) string, .Int(string) int, .Bool(string) bool.

Activity

  1. added this to the Release 3.x milestone on Nov 15, 2022
  2. added
    area/v3
    on Jun 12, 2023
  3. self-assigned this
    on Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/v3

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions