-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactored GET * Implemented PUT and POST * Minor spelling error * Fixed import * Makefile for cross compile * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines
- Loading branch information
Showing
4 changed files
with
62 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
goos= | ||
goarch=amd64 | ||
archlabel=x86_64 | ||
goarm= | ||
fileext= | ||
|
||
deps = ./vendor | ||
|
||
|
||
default: $(deps) | ||
go build -v | ||
|
||
$(deps): | ||
go mod vendor -v | ||
|
||
build: $(deps) | ||
env GOOS=$(goos) GOARCH=$(goarch) GOARM=$(goarm) go build -v -o coapcmd-$(goos)-$(archlabel)$(fileext) . | ||
|
||
darwin: $(deps) | ||
env GOOS=darwin GOARCH=amd64 go build -v -o coapcmd-darwin-x86_64 | ||
|
||
linux: $(deps) | ||
env GOOS=linux GOARCH=amd64 go build -v -o coapcmd-linux-x86_64 | ||
|
||
windows: $(deps) | ||
env GOOS=windows GOARCH=amd64 go build -v -o coapcmd-windows-x86_64.exe | ||
env GOOS=windows GOARCH=386 go build -v -o coapcmd-windows-386.exe | ||
|
||
arm: $(deps) | ||
env GOOS=linux GOARCH=arm GOARM=6 go build -v -o coapcmd-linux-armv6 . | ||
env GOOS=linux GOARCH=arm GOARM=7 go build -v -o coapcmd-linux-armv7 . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module github.com/moroen/coapcmd | ||
|
||
go 1.15 | ||
|
||
require ( | ||
github.com/dustin/go-coap v0.0.0-20190908170653-752e0f79981e // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/moroen/dtls v0.0.0-20200304233939-8868b17f6698 // indirect | ||
github.com/moroen/gocoap v0.5.0 | ||
github.com/spf13/cobra v1.0.0 | ||
github.com/spf13/viper v1.7.1 | ||
) |