Skip to content

Commit

Permalink
mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Oct 22, 2021
1 parent 9ce5394 commit d3ce014
Show file tree
Hide file tree
Showing 6 changed files with 561 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ggth
12 changes: 6 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ archives:
format: zip
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: --REPOLINK--
description: --DESCRIPTION--
homepage: https://github.com/Jmainguy/ggth
description: Golang Github Template Helper
maintainer: Jonathan Seth Mainguy <jon@soh.re>
license: GPLv2
vendor: Jmainguy
Expand All @@ -46,16 +46,16 @@ brews:
owner: jmainguy
name: homebrew-tap
folder: Formula
homepage: --REPOLINK--
description: --DESCRIPTION--
homepage: https://github.com/Jmainguy/ggth
description: Golang Github Template Helper
license: "GPL-2.0"
commit_author:
name: Jonathan Mainguy
email: jon@soh.re
test: |
system "#{bin}/--BINARY--"
system "#{bin}/ggth"
install: |
bin.install "--BINARY--"
bin.install "ggth"
checksum:
name_template: 'checksums.txt'
Expand Down
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# golang-cli-template
# ggth
[![Go Report Card](https://goreportcard.com/badge/github.com/Jmainguy/ggth)](https://goreportcard.com/badge/github.com/Jmainguy/ggth)
[![Release](https://img.shields.io/github/release/Jmainguy/ggth.svg?style=flat-square)](https://github.com/Jmainguy/ggth/releases/latest)
[![Coverage Status](https://coveralls.io/repos/github/Jmainguy/ggth/badge.svg?branch=main)](https://coveralls.io/github/Jmainguy/ggth?branch=main)

This is a template for creating golang cli application. It includes .github/ actions and .goreleaser.yml for automation.

Edit .goreleaser.yml and replace the following variables in .goreleaser.yml with the appropriate values
Golang Github Template Helper

## Usage
```/bin/bash
ggth
```
--BINARY--
--REPOLINK--
--DESCRIPTION--

## PreBuilt Binaries
Grab Binaries from [The Releases Page](https://github.com/Jmainguy/ggth/releases)

## Install

### Homebrew

```/bin/bash
brew install Jmainguy/tap/ggth
```

Add a secret to the new repo called GORELEASER_TOKEN with permissions to homebrew-tap repo.
## Build
```/bin/bash
export GO111MODULE=on
go build
```
17 changes: 17 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module github.com/jmainguy/ggth

go 1.17

require (
github.com/google/go-github/v39 v39.2.0
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1
)

require (
github.com/golang/protobuf v1.4.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.25.0 // indirect
)
Loading

0 comments on commit d3ce014

Please sign in to comment.