Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeorge committed Jan 9, 2024
1 parent ee0296a commit ce39fef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Simple utility to retrieve TLS certificate expiration dates.

```sh
# install go
sh -c 'VERSION="v0.0.3"; GH="github.com/andygeorge/tlx"; GOPRIVATE=$GH go install -v $GH@$VERSION'
sh -c 'VERSION="v1.0.0"; GH="github.com/andygeorge/tlx"; GOPRIVATE=$GH go install -v $GH@$VERSION'
```

## Usage
Expand Down
10 changes: 9 additions & 1 deletion main.go → tlx.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@ import (

const (
DayFormat string = "2006-01-02 15:04 MST"
Version string = "1.0.0"
)

var args struct {
type args struct {
Domain string `arg:"required,positional"`
Port string `arg:"positional" default:"443"`
}

func (args) Version() string {
return "tlx " + Version
}

func main() {
now := time.Now()

var args args
go_arg.MustParse(&args)

tls_config := &tls.Config{InsecureSkipVerify: true}

conn, err := tls.Dial("tcp", args.Domain+":"+args.Port, tls_config)
Expand Down

0 comments on commit ce39fef

Please sign in to comment.