Skip to content

List tool should implement --tool-path option. #9177

@peterhuene

Description

@peterhuene

Steps to reproduce

  1. mkdir /tmp/foo
  2. Install a tool using dotnet install tool --tool-path /tmp/foo.
  3. Run dotnet list tool --tool-path /tmp/foo.

Expected behavior

The command lists the tools installed at /tmp/foo.

Actual behavior

The command fails with unknown option error.

Environment data

$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.1.300-preview2-008354
 Commit:    6d9177f143

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx-x64
 Base Path:   /Users/peterhuene/src/cli/bin/2/osx-x64/dotnet/sdk/2.1.300-preview2-008354/

Host (useful for support):
  Version: 2.1.0-preview2-26313-01
  Commit:  3c802455b2

.NET Core SDKs installed:
  2.1.300-preview2-008354 [/Users/peterhuene/src/cli/bin/2/osx-x64/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.0-preview2-30281 [/Users/peterhuene/src/cli/bin/2/osx-x64/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.0-preview2-30281 [/Users/peterhuene/src/cli/bin/2/osx-x64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.0-preview2-26313-01 [/Users/peterhuene/src/cli/bin/2/osx-x64/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions