-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: go | ||
go: | ||
- master | ||
script: | ||
- make build-travis | ||
deploy: | ||
- provider: releases | ||
skip_cleanup: true | ||
api_key: | ||
secure: "H4jk+hSqPxzyo73VL/VqSphFfahdpEgRVeFPqDsqc7HeebZbCFwtCgu2cUULoJ6KVEFNJ3x1yKkOApEs0Rvl3FKZwFVMkileTmSNXMxR2+gS4M5clIBZdOLasNWrAjwLl8OLTm6G/Qh4YWKs1lB51KI9Cn8Ybn7MzdOJs/LreT7j8luhdhhuP8xSDWwp2Q8tHBkkYMMSjkKaN8PTPoEXk3EHEtHzwmin3jHD36N5iJPAN2BddMFpkmeREzJP5uxNtMB6P+AYtmFhu7mfxyIaMAoinWv1dmP/WtUvKxcO4ckN8Jp8BVti4giIfl3qWBaGb+LssSO8Dn60eE8o3+UbzWQtflBeQUokXvtTZBZBoA2esSL+BlHWNxlCDtM5TrrBkW6gSmbfUibUrgpsYL3EfgRQbLiCTkULZy82KZSUdLlVEiHCS8/RilYRFSK8kUtHpG3vUgnjZ/1n39exAAYzNxcOXod6RYTX7dJ0os6CLZUa/xGGeuNEsoNw5ycxonzF1qVlHnAWOT2vrRarpSMcy6Ij0IdVUY9jvARFhj7x2ZnJh5bftttmgfMIsyqpxjl4RK1qx7S4Z1d36utguBvC3kqBatRSt7LaWCP5YxpHh15k+uclj3aLcdQVCrKFfbTXJoopSEHUUgyxXpstv8NFVEcx120T9i3T+v2rHl1hVXw=" | ||
name: "gifwrap $TRAVIS_TAG" | ||
file: | ||
- bin/darwin-amd64/gifwrap | ||
- bin/darwin-arm64/gifwrap | ||
- bin/linux-amd64/gifwrap | ||
on: | ||
repo: liamg/gifwrap | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
default: build | ||
|
||
build: test | ||
mkdir -p bin | ||
go build ./cmd/gifwrap/ -o bin/gifwrap | ||
|
||
build-travis: test | ||
mkdir -p bin/linux-amd64/gifwrap | ||
mkdir -p bin/darwin-amd64/gifwrap | ||
mkdir -p bin/darwin-arm64/gifwrap | ||
GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/gifwrap ./cmd/gifwrap | ||
GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/gifwrap ./cmd/gifwrap | ||
GOOS=darwin GOARCH=arm64 go build -o bin/darwin-arm64/gifwrap ./cmd/gifwrap | ||
|
||
test: | ||
go vet ./... | ||
go test -v ./... | ||
|
||
.PHONY: build test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# gifwrap | ||
|
||
GIFs in your terminal | ||
GIFs in your terminal. | ||
|
||
![demo](demo.gif) | ||
|
||
## Install | ||
|
||
Download the [latest binary](https://github.com/liamg/gifwrap/releases/) or install with Go: | ||
|
||
```bash | ||
go install github.com/liamg/gifwrap@latest | ||
gifwrap https://media.giphy.com/media/QMHoU66sBXqqLqYvGO/giphy.gif | ||
``` | ||
|
||
## Usage | ||
|
||
```bash | ||
Usage: | ||
gifwrap [url-or-path] [flags] | ||
|
||
Flags: | ||
-f, --fill Fill the entire terminal with the gif, ignoring aspect ratio | ||
-h, --help help for gifwrap | ||
``` |