Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): add a variety of usages for nx show #17073

Merged
merged 1 commit into from
May 23, 2023

Conversation

AgentEnder
Copy link
Member

Current Behavior

nx show only has one subcommand, which can list projects and also filter only affected.

Expected Behavior

nx show has two subcommands, which can do the following:

projects: By default, shows all projects in the workspace

  • affected: only print affected projects
  • patterns: list projects that match the given patterns - this is super useful when debugging the tag / directory patterns
  • with-target: list all projects with a given target. This is useful for onboarding devs or finding projects that can be ran with a serve target

targets: By default, shows all targets available. Useful for run-many or affected

  • project: show all targets for the given project, instead of all available targets

Related Issue(s)

Fixes #12123,

@vercel
Copy link

vercel bot commented May 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2023 7:43pm

@AgentEnder AgentEnder force-pushed the feat/new-show-options branch from b587ce7 to 2b2d975 Compare May 23, 2023 19:39
@AgentEnder AgentEnder merged commit 5ef9ea6 into nrwl:master May 23, 2023
@AgentEnder AgentEnder deleted the feat/new-show-options branch May 23, 2023 22:07
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have a command to list available targets
1 participant