cli-lab
cli-lab copied to clipboard
MacOS installer
Now the installation for macOS is manual, and the instruction make you install the tool in the root of your profile. Maybe having a proper installer would be a good idea. Or as dotnet global tool?
This should definitely use the dotnet tool install cli syntax. Or at least tell people where to put global tools in the instructions.
OS | Path |
---|---|
Linux/macOS. | $HOME/.dotnet/tools. |
Windows | %USERPROFILE%.dotnet\tools. |
from the docs
Thanks for your feedback! Please see the note in our README on why this tool cannot be a dotnet global tool. As for a mac installer, this would definitely be a great enhancement for future iterations.
@sfoslund yah that is an interesting problem i was not thinking of.
I would assume that could be guarded against? Like you don't allow uninstalling a runtime that is running the tool?
dotnet uninstall
would produce a list of items with the current runtime a different color to indicate it cannot be removed?
I think for now this should be put in homebrew cask?
Looping in @wli3
@steveoh it sounds like that would be a solution, but we don't have any plans to take that work on at the moment.
It is possible to add an install for mac. On Windows, only installer should touch your Program Files folder, that's why we need to have an Windows installer.
dotnet tool install
does not support RID (platform) specific packages. So it is not easy to add in short term.
For homebrew. Like other dotnet core packages, we encourage the community to maintain. Since it is not trivial to support an another delivery mechanism
@akshaybabloo it would be a "simple" formula, not a 'cask", since this is a CLI tool, not something with a GUI
@simonech or that
Still on this topic... the documentation on docs.microsoft.com says
The tool requires elevation to uninstall .NET Core SDKs and runtimes. Therefore, it should be installed in a write-protected directory such as C:\Program Files on Windows or /usr/local/bin on macOS.
While the instructions in the release page on Github makes you copy the file in the ~/
folder, which is the home folder of the user.
Not sure which is the correct one, but they should be consistent.