Skip to main content

query affected

v2.0.0

Use the moon query affected sub-command to query for all affected projects and tasks based on the state of the workspace and VCS.

# Return affected
$ moon query affected

# Return affected including dependency relationships
$ moon query affected --upstream deep

This will output a map of projects and tasks as JSON. The output has the following structure:

{
projects: Record<Id, AffectedState>,
tasks: Record<Target, AffectedState>,
}

Options

  • --downstream - Include downstream dependents. Supports "none" (default), "direct", "deep".
  • --upstream - Include upstream dependencies. Supports "none", "direct", "deep" (default).