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

Add a one-shot execution mode for .NET tools #31103

Open
baronfel opened this issue Mar 9, 2023 · 0 comments
Open

Add a one-shot execution mode for .NET tools #31103

baronfel opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
Area-Tools untriaged Request triage from a team member

Comments

@baronfel
Copy link
Member

baronfel commented Mar 9, 2023

Is your feature request related to a problem? Please describe.

Currently to use a .NET global tool that may or may not be installed, you need to perform a series of steps

  • install the tool globally
  • ensure the global tool install directory is on the PATH
  • invoke the tool
  • (optionally) remove the tool

And for local tools, you need to

  • create a tool manifest
  • install the tool
  • invoke the tool
  • (optionally) remove the tool

When all you really want to do is

  • invoke the tool

We should consider adding a mode of running a .NET tool that combines all of these steps into one user-facing step.

Describe the solution you'd like

Something akin to

dotnet toolx [-g|--global] [--rm] [--version toolVersion] <toolName> [tool args and options]

that would combine all of the preceding steps into one logical command. The tool would be installed (locally by default, creating a manifest if necessary), executed passing along whatever args, and then optionally being uninstalled after execution. If a version was supplied and the locally-available version of the tool (if any) doesn't satisfy that version, the specified version would be installed.

Additional context

Add any other context or screenshots about the feature request here.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Tools untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant