From 4dde7ece79f55f89a02cc60d463f1172e54e26dd Mon Sep 17 00:00:00 2001 From: Oliver Eilhard Date: Thu, 30 May 2019 12:20:23 +0200 Subject: [PATCH] Add Go modules support This commit adds Go module support and fixes a few links in the documentation and code. --- .gitignore | 1 - LICENSE | 2 +- README.md | 16 +++++++++------- cmd/imgcat/imgcat.go | 6 +++--- cmd/imgls/imgls.go | 6 +++--- go.mod | 3 +++ 6 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 go.mod diff --git a/.gitignore b/.gitignore index 1a9410b..5660479 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,3 @@ _testmain.go *.exe imgcat imgls - diff --git a/LICENSE b/LICENSE index 53a534f..e5e168a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ The MIT License (MIT) -Copyright © 2012-2014 Oliver Eilhard +Copyright © 2012-2019 Oliver Eilhard Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal diff --git a/README.md b/README.md index 11dec1b..dc0e2e9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ -# Display images in iterm2 +# Display images in iTerm2 -This tool implements the iterm2 image support as described -[here](http://iterm2.com/images.html). It supports both local -files as well as images loaded via http(s). +This tool implements the [iTerm2](https://www.iterm2.com/) +image support as described +[here](https://www.iterm2.com/documentation-images.html). +It supports both local files as well as images loaded via http(s). -Be sure to install iterm2 nightly. +Be sure to +[install the latest version of iTerm2](https://www.iterm2.com/downloads.html). ![imgcat](/img/imgcat.png?raw=true "imgcat") @@ -19,13 +21,13 @@ Be sure to install iterm2 nightly. To install `imgcat`, type: ```go -go get -u github.com/olivere/iterm2-imagetools/cmd/imgcat +GO111MODULE=on go get -u github.com/olivere/iterm2-imagetools/cmd/imgcat ``` To install `imgls`, type: ```go -go get -u github.com/olivere/iterm2-imagetools/cmd/imgls +GO111MODULE=on go get -u github.com/olivere/iterm2-imagetools/cmd/imgls ``` # License diff --git a/cmd/imgcat/imgcat.go b/cmd/imgcat/imgcat.go index 145c158..3923d22 100644 --- a/cmd/imgcat/imgcat.go +++ b/cmd/imgcat/imgcat.go @@ -1,7 +1,7 @@ -// This tool implements the iterm2 image support as described here: -// http://iterm2.com/images.html +// This tool implements the iTerm2 image support as described here: +// https://www.iterm2.com/documentation-images.html // -// Be sure to install iterm2 nightly. +// Be sure to install a latest version of iTerm2 (e.g. 3.2.0 or later). package main diff --git a/cmd/imgls/imgls.go b/cmd/imgls/imgls.go index 640cd94..7d6bbe3 100644 --- a/cmd/imgls/imgls.go +++ b/cmd/imgls/imgls.go @@ -1,7 +1,7 @@ -// This tool implements the iterm2 image support as described here: -// http://iterm2.com/images.html +// This tool implements the iTerm2 image support as described here: +// https://www.iterm2.com/documentation-images.html // -// Be sure to install iterm2 nightly. +// Be sure to install a latest version of iTerm2 (e.g. 3.2.0 or later). package main diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5dec5a3 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/olivere/iterm2-imagetools + +go 1.12