Skip to content

Commit

Permalink
Add Go modules support
Browse files Browse the repository at this point in the history
This commit adds Go module support and fixes a few links in the
documentation and code.
  • Loading branch information
olivere committed May 30, 2019
1 parent 7a5a6eb commit 4dde7ec
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ _testmain.go
*.exe
imgcat
imgls

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -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")

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/imgcat/imgcat.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions cmd/imgls/imgls.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/olivere/iterm2-imagetools

go 1.12

0 comments on commit 4dde7ec

Please sign in to comment.