Skip to content

Make element selection consistent across commands #1349

Description

See original issue on GitLab
In GitLab by [Gitlab user @cs-shadow] on Jul 3, 2020, 12:12

Summary

BuildStream mainly offers two options to tweak element sections - --except and --deps. However they are not accepted uniformly by all commands.

For example, some commands like show, source checkout etc support --except option to exclude certain elements from the pipeline. However, others like artifact checkout don't.

Similarly, not all commands accept all values for --deps. For example, source track only accepts all and none whereas show accepts all|none|build|run|plan. Out of these, plan is probably the most tricky one, as mentioned in https://gitlab.com/BuildStream/buildstream/-/merge_requests/1893#note_335927435. We need a plan about how to handle --deps plan sensibly. But, it should be generally reasonable to add the other options to all the commands.

Todo

Part of --deps unification was implemented in !1904. Here's what's left to do:

  • Unify --deps for the remaining commands
  • Provide --except to commands more consistently, review where it should be added
  • Have a plan for handling --deps plan, especially important from API perspective if it's going to move out of --deps option
  • Implement the said plan

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendAn issue related to the CLI or frontend UI/UX

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions