Skip to content

Workspace Commands: Add Option to Run Against a Single Package #62072

@jopmiddelkamp

Description

@jopmiddelkamp

I’d like to see support for targeting a single package in the workspace commands, similar to how Melos worked—but with inverted defaults. Ideally:

  • Default: run the command on the entire workspace
    dart format → formats everything
  • Optional: packages selection
    dart format -p → formats only a selected package
  • Optional: target a specific package
    dart format -p <package> → formats only that package

This removes the need to dive into nested package directories just to run a command on one package, while keeping “run everything” as the standard, convenient default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-formatIssues related to the 'dart format' tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions