Skip to content

Need way to access library's pubspec attributes. #18769

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


It would be quite useful to be able to access the attributes from the pubspec.yaml file for a library/package programmatically. In particular, the version and description attributes may be quite useful to see in a version info dialog, or even a '--version' when using a console app. For instance, if I have an package "xyz_app", which has a pubspec with a version '1.0.1', there should be a fairly easy way to access that version text.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-sdkUse area-sdk for general purpose SDK issues (packaging, distribution, …).type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions