Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Nov 7, 2021
1 parent 7416ac2 commit 34caf34
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
35 changes: 35 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
release:
prerelease: auto
name_template: "{{.ProjectName}} v{{.Version}}"

builds:
- env:
- CGO_ENABLED=0
goos:
- freebsd
- windows
- darwin
- linux
- dragonfly
- netbsd
- openbsd
goarch:
- amd64
- arm
- arm64
- 386
ldflags:
- -s -w -X main.githash={{.ShortCommit}}

archives:
-
id: dt
builds:
- dt
name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: binary
files:
- none*

checksum:
name_template: 'checksums.txt'
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,22 @@ DNS tool that displays information about your domain.

Feedback, issues and PR's are welcome.

# TODO
* daemon mode
* grading
* keeping history

# Installing

## Binaries
Binaries can be found [here](https://github.com/42wim/dt/releases/)

## Building
Go 1.6.3+ is required. Make sure you have [Go](https://golang.org/doc/install) properly installed, including setting up your [GOPATH] (https://golang.org/doc/code.html#GOPATH)
Go 1.13+ is required.

```
cd $GOPATH
go get github.com/42wim/dt
go install github.com/42wim/dt
```

You should now have dt binary in the bin directory:

```
$ ls bin/
$ ls ~/go/bin/
dt
```

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func doDomainReport(s *scan.Scan, domain string, nsdatas []structs.NSData, domai
}

domainReport.Name = domain
sp := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
sp := spinner.New(spinner.CharSets[26], 100*time.Millisecond)
sp.Writer = os.Stderr

if *flagJSON || *flagDebug {
Expand All @@ -133,7 +133,7 @@ func doDomainReport(s *scan.Scan, domain string, nsdatas []structs.NSData, domai
domainReport.Timestamp = time.Now()

if *flagScan {
sp := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
sp := spinner.New(spinner.CharSets[26], 100*time.Millisecond)
sp.Writer = os.Stderr

if *flagJSON || *flagDebug {
Expand All @@ -159,7 +159,7 @@ func doDomainReport(s *scan.Scan, domain string, nsdatas []structs.NSData, domai
}

func createNSHeader(s *scan.Scan, domain string, nsdatas []structs.NSData, domainReport *check.DomainReport) {
sp := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
sp := spinner.New(spinner.CharSets[26], 100*time.Millisecond)
sp.Writer = os.Stderr

if *flagJSON || *flagDebug {
Expand Down

0 comments on commit 34caf34

Please sign in to comment.