Open skofman1 opened 6 years ago
dotnet.exe has a publish command that copies all binaries to an output folder. That command is not related to nuget so we should avoid re-using the same command name in a different way.
since "list" and "publish" are taken. I am thinking using nuget delete with an option to relist
nuget delete -relist
or create a new top level command called nuget relist
@anangaur thoughts?
nuget delete -relist
seems to be non-intuitive. What about nuget enlist
?
enlist
is a kind of a loaded and confusing term. My personal preference:
nuget relist
- most clear but highly visible for a less common scenarionuget push ID VERSION -relist
- better since push
seems like a closer match than delete
nuget delete ID VERSION -relist
- since it's essentially the inverse of delete
in the NuGet.org caseI also agree publish
is not great since that could be easily confused with dotnet publish
as @emgarten mentioned.
May be relist
is the right option. The only problem I have with this verb is that its not related to list
and hence can be confusing. As of now not convinced if we should overload push
or delete
.
I agree with Joel that enlist
would be confusing. We all seem to be leaning towards relist
.
relist
, typically used would mean, listing again. But for NuGet, list
means displaying a list of packages from a given source. Hence, relist
as a top level command doesn't intuitively lend itself to mean the opposite of delete/unlist.
However, someone who uses delete on NuGet.org knows it unlists the packages. Hence, giving an option to undo that, would be more intuitive in my opinion. Also, to Joel's point, this is not the most common of scenarios and doesn't need a top level command.
Given that, my proposal would be to go with
nuget delete ID VERSION -relist
Hi All,
Is this available in latest nuget.exe? If not, when relist option available in nuget.exe for relist the unlist packages.
Thanks, Ganesan R.
@GanesanRengasamy - no this has not be implemented and there aren't any plans yet to do so. Can you talk more about your scenario? Do you unlist packages often? Or do you have a private nuget server and want a way to delete packages?
@karann-msft commented in a discussion here: https://github.com/NuGet/NuGetGallery/issues/5191 here's what happens when you try running the publish command
Not a documentation issue.
Moreover, no such command shows up in
nuget help