go-nuget
A partial implementation of the Nuget CLI tool, written in Go, for use in automated build processes and deployment of .nuspec & .nupkg files.
Writen in Go to be platform agnostic, built against the go-nuget-server project.
Getting Started
git clone github/soloworks/go-nuget
go build -o nuget.exe
Implementation (Working ToDo)
spec
nuget spec [<packageID>] [options]
pack [ToDo]
nuget pack <nuspecPath | projectPath> [options] [-Properties ...]
push [ToDo]
nuget push <packagePath> [options]
Notes
Packages are PUT using the mime type multipart/form-data
with a randomly generated boundary
parameter, eg
multipart/form-data; boundary="88742a6c-280a-43a2-ad06-1b27ebb33d6e"
The multipart headers used are:
Content-Type: application/octet-stream
Content-Disposition: form-data; name=package; filename=package.nupkg; filename*=utf-8''package.nupkg
Resources
- Microsoft nuget.exe CLI [Here]
- Microsoft nuget.exe Download Here (v5.3.0 - Latest Recommended)
Acknowledgements