Skip to content

Commit

Permalink
Refactor CLI into cmd directory and delete unused code (#19)
Browse files Browse the repository at this point in the history
This change moves the dicomutil command line tool into the cmd/ folder as per #14. This change also deletes currently unused dead code, and updates gitignores.
  • Loading branch information
suyashkumar committed May 23, 2019
1 parent 54822ff commit d38b575
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 379 deletions.
28 changes: 0 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,9 @@
# binary
dicom

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof

*.DS_Store
*.sublime-*

# Test files
out

.idea
build
vendor
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ BINARY = dicomutil
build:
dep ensure
$(MAKE) test
go build -o build/${BINARY} ./dicomutil
go build -o build/${BINARY} ./cmd/dicomutil

.PHONY: build-fast
build-fast:
go build -o build/${BINARY} ./dicomutil
go build -o build/${BINARY} ./cmd/dicomutil

.PHONY: test
test:
Expand All @@ -23,6 +23,6 @@ run:
release:
dep ensure
$(MAKE) test
GOOS=linux GOARCH=amd64 go build -o build/${BINARY}-linux-amd64 ./dicomutil;
GOOS=darwin GOARCH=amd64 go build -o build/${BINARY}-darwin-amd64 ./dicomutil;
GOOS=windows GOARCH=amd64 go build -o build/${BINARY}-windows-amd64.exe ./dicomutil;
GOOS=linux GOARCH=amd64 go build -o build/${BINARY}-linux-amd64 ./cmd/dicomutil;
GOOS=darwin GOARCH=amd64 go build -o build/${BINARY}-darwin-amd64 ./cmd/dicomutil;
GOOS=windows GOARCH=amd64 go build -o build/${BINARY}-windows-amd64.exe ./cmd/dicomutil;
File renamed without changes.
1 change: 0 additions & 1 deletion dicomutil/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions fuzztest/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions fuzztest/fuzz.go

This file was deleted.

1 change: 0 additions & 1 deletion pydicomtest/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions pydicomtest/README.md

This file was deleted.

198 changes: 0 additions & 198 deletions pydicomtest/print_elements.go

This file was deleted.

Loading

0 comments on commit d38b575

Please sign in to comment.