Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Duffy <[email protected]>
  • Loading branch information
imduffy15 committed Dec 2, 2018
0 parents commit abf958f
Show file tree
Hide file tree
Showing 31 changed files with 1,845 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea
.DS_Store
dist
.history
pkg
vendor/*/
main

108 changes: 108 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Build customization
build:
# Path to main.go file.
# Default is `main.go`
binary: token-cli

env:
- CGO_ENABLED=0

# GOOS list to build in.
# For more info refer to https://golang.org/doc/install/source#environment
# Defaults are darwin and linux
goos:
- linux
- darwin

# GOARCH to build in.
# For more info refer to https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64
goarch:
- amd64

ldflags: -X github.com/imduffy15/token-cli/version.Version={{.Version}}

release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL.
github:
owner: imduffy15
name: token-cli

# If set to true, will not auto-publish the release.
# Default is false.
draft: false

# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: false

# You can change the name of the GitHub release.
# Default is ``
name_template: "{{.ProjectName}}-v{{.Version}}"

# You can disable this pipe in order to not upload any artifacts to
# GitHub.
# Defaults to false.
disable: false

nfpm:
name_template: '{{ .ProjectName }}_{{ .Arch }}'
homepage: https://github.com/imduffy15/token-cli
description: OpenID token generator
maintainer: Ian Duffy <[email protected]>
license: Apache 2.0
vendor: imduffy15
formats:
- deb
- rpm
recommends:
- rpm

# Archive customization
archive:
# You can change the name of the archive.
# This is parsed with Golang template engine and the following variables.
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"

# Archive format. Valid options are `tar.gz` and `zip`.
# Default is `zip`
format: tar.gz

# Replacements for GOOS and GOARCH on the archive name.
# The keys should be valid GOOS or GOARCH values followed by your custom
# replacements.
# By default, `replacements` replace GOOS and GOARCH values with valid outputs
# of `uname -s` and `uname -m` respectively.
replacements:
amd64: amd64
386: 386
darwin: macOS
linux: linux

brew:
name: token-cli

github:
owner: imduffy15
name: homebrew-tap

commit_author:
name: Ian Duffy
email: [email protected]

folder: Formula

homepage: https://github.com/imduffy15/token-cli

description: "OpenID token generator"

skip_upload: false

snapcraft:
name_template: '{{ .ProjectName }}_{{ .Arch }}'
summary: OpenID token generator.
description: |
OpenID token generator.
grade: stable
confinement: classic
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: go

go:
- 1.11.x

# Only clone the most recent commit.
git:
depth: 1

105 changes: 105 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/fatih/color"
version = "1.7.0"

[[constraint]]
branch = "master"
name = "github.com/skratchdot/open-golang"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.3"

[[constraint]]
branch = "master"
name = "github.com/zalando/go-keyring"

[prune]
go-tests = true
unused-packages = true
Loading

0 comments on commit abf958f

Please sign in to comment.