From 210d638cc5178894ecb5d00ae78359362b441ea1 Mon Sep 17 00:00:00 2001 From: Will Johnson Date: Tue, 24 Jul 2018 16:46:49 +0100 Subject: [PATCH] Move to DataShed GitHub Update to version 1.6.0 Remove unnecessary .gitignore entries --- .gitignore | 6 ------ .travis.yml | 6 +++--- README.md | 31 +++++++++++++++++-------------- build/build_binaries.sh | 2 +- build/generate_docs.go | 4 ++-- cmd/copy.go | 2 +- cmd/list.go | 2 +- cmd/set.go | 2 +- cmd/show.go | 2 +- main.go | 2 +- 10 files changed, 28 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 68ad9b9..b40336e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,12 +14,6 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out -# Packages from go get -github.com - -# Complied binaries -bin/ - ### macOS ### # General .DS_Store diff --git a/.travis.yml b/.travis.yml index 52aee8d..2bcfc7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - '1.10' -go_import_path: github.com/willjcj/param +go_import_path: github.com/thedatashed/param script: - go test -v ./... @@ -13,10 +13,10 @@ deploy: provider: releases skip_cleanup: true api_key: - secure: t6uxlo/bpCWLGJ+Scpd4i23Na9QcZ4bK+EKUI7gud3Ww0fzU3CG2pvgjgA3DBDvQTa7FWn2//0xZ066jJGzHccEzsWajEuAyjfxooIqQIuH2BwYW2p2OFQO3vmK27Jwra2Ru+oackExFGl4Z0G3YcD7/vnB5BaajcyplvtQuPr9Dk7Bu0SAgBaOEXMqNu0YHk8VxlG3qvrQwt38QVW+5Us6mYsJ8G0AbQvPN6zoiBcBo3Uj6KfYzCi08/4C0FfXV3y5RkwDQfFdbz5hhldTZqPDs9rJko6eF6uhp2uR1tnOIWo4Hkg5Mlhdm5RMzwOpClmOc6LVvHQxhywfvWI8S//AlsBLAvUXm4rOQm5IPBSlSxLx4v/gTnfJ/KBTGbXWF4rPG/EcZDd57g+fzaPlJFVaYqdR4C45K5Zm9C2H7Q8qli5X65LvFTABx7SUo6pHeV/XH4SlKeWUSNLhzMJHBG8rHO4/YxWEENP9JktX6tqf9Dth+2U3/q3mmkuRjU3H8Whx8UYJQaDAopo/WHnNlvuWo2Lpwl5UEa7Gh5qPFVOFWN1LTbCdt6ToQCrqsw02gikA3yqq4HYzW8IYta4m3YaOiuqv5GHgUXdpOteSfjM8KUPR4e2d0dsMDXwQuJowkpGPOUG5QZ86EFJOli19PpmZxwdRvxTlT4jOfA8FR5Hc= + secure: fe09o/awnojNgLd52dwjM/zOSkn/XlKF8QFumuXdr9s/6j3S14HQvWJ4wtoMIUjNokooI31TJbyG68hAEYtbwcWinbzRmODlBbTFS2rRJgiQPtymPEKUDyLwT++Dbaa5Lp9FaNPq5mYGVasS+BQX9kxJ90OxsChRobQ7QV8IuAt0k0H6KI1jsgiTWrt4t5zZhNbjHjFHnQ9grbqCOJBSp+niwCp62JFFHcmhgPQNLDu3KkXfkwuWyzmLqHrNOw1YNapthxEXWI8T1mMhiAi5jT42cKVjN/G6bcfjLNrB/zNlOBFdrOWnEu1ou6WRpj/2v/Ni8FnsWnBaINRGnR3cL3cYpjPH+/FcsHOra/xdrIadoxb3SH6Bx7CguAqW+hZ2Bw7SkqqfFkOXp+tMtcbGI00jT+iOZ0zNexvPE0GtCftMJFtbrfU2bKE9ysoOO0UoQ6uh+XV/iqOdcm4ltUQhh2zlWCfRv4DsxoRhm/9LZ4GkH3fNmwOcd2P0QN6yLvLtPc6WgPnD5wFhsiwgvmcUfzK5jvp+9Oc6bs1J/PWrmDXi7YgNtustY3+7bqqLO4tjHBLpRwPsZxpZY7YRJRUw2UHT+x9KWzGxYtq2FgZBQaU+aoNGvyZF2vSLQ/aLFgPIffqTVQ1KyGLyLvEYjLjh2pYr3f5i2LniTcexyTieRiA= file: - bin/param-darwin-amd64 - bin/param-linux-amd64 on: tags: true - repo: WillJCJ/param + repo: TheDataShed/param diff --git a/README.md b/README.md index 39977b7..62cb98f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # param -[![Build Status](https://travis-ci.com/WillJCJ/param.svg?branch=master)](https://travis-ci.com/WillJCJ/param) +[![Build Status](https://travis-ci.com/TheDataShed/param.svg?branch=master)](https://travis-ci.com/TheDataShed/param) - [Introduction](#introduction) - [Install](#install) @@ -23,11 +23,11 @@ It also supports `bash` and `zsh` completion. ## Install You can install `param` by downloading the latest binary from the -[Releases](https://github.com/WillJCJ/param/releases) page or by compiling +[Releases](https://github.com/TheDataShed/param/releases) page or by compiling from source with `go`. ```console -go get github.com/willjcj/param +go get github.com/thedatashed/param ``` This should build a binary at `$GOPATH/bin/param` @@ -37,13 +37,13 @@ already on your `PATH`. ### Curl -Run the below command to download the 1.5.0 binary and add it to +Run the below command to download the 1.6.0 binary and add it to `/usr/local/bin`. #### Linux ```console -curl -LO https://github.com/WillJCJ/param/releases/download/1.5.0/param-linux-amd64 && \ +curl -LO https://github.com/TheDataShed/param/releases/download/1.6.0/param-linux-amd64 && \ chmod +x param-linux-amd64 && \ sudo mv param-linux-amd64 /usr/local/bin/param ``` @@ -51,7 +51,7 @@ sudo mv param-linux-amd64 /usr/local/bin/param #### MacOS ```console -curl -LO https://github.com/WillJCJ/param/releases/download/1.5.0/param-darwin-amd64 && \ +curl -LO https://github.com/TheDataShed/param/releases/download/1.6.0/param-darwin-amd64 && \ chmod +x param-darwin-amd64 && \ sudo mv param-darwin-amd64 /usr/local/bin/param ``` @@ -81,8 +81,8 @@ password123 #### Auto-completion -With shell completion enabled, you can press tab to auto-complete the parameter -names. +With shell completion enabled, you can press tab to auto-complete the +parameter names. ### List @@ -119,8 +119,8 @@ $ param set parameter_name password456 -f #### Auto-completion -With shell completion enabled, you can press tab to auto-complete the parameter -names. +With shell completion enabled, you can press tab to auto-complete the +parameter names. ### Show @@ -134,8 +134,8 @@ password123 #### Auto-completion -With shell completion enabled, you can press tab to auto-complete the parameter -names. +With shell completion enabled, you can press tab to auto-complete the +parameter names. ## Shell Completion @@ -190,8 +190,8 @@ They are generated by Cobra by running `go run build/generate_docs.go`. ## CI -`param` uses Travis CI to test each commit. It also handles GitHub releases when -a new tag is pushed to GitHub. +`param` uses Travis CI to test each commit. It also handles GitHub releases +when a new tag is pushed to GitHub. ## TODO @@ -202,6 +202,9 @@ a new tag is pushed to GitHub. - Add a flag to specify parameter type. Currently only works with `SecureString`s. - Better logging and a verbose option to see what calls are made to AWS. + - Copy timeout. + - Configurable timeout for copying a parameter so it doesn't stay in + the clipboard indefinitely. - Shell Completion - `zsh` completion doesn't seem to work. - Update or delete the bash completion cache after creating/deleting diff --git a/build/build_binaries.sh b/build/build_binaries.sh index 08028b7..e31b0ba 100755 --- a/build/build_binaries.sh +++ b/build/build_binaries.sh @@ -8,7 +8,7 @@ FAILURES="" if [ -z "${GOPATH}" ]; then GOPATH="${HOME}/go" fi -BIN_PATH="${GOPATH}/src/github.com/willjcj/param/bin" +BIN_PATH="${GOPATH}/src/github.com/thedatashed/param/bin" for PLATFORM in ${PLATFORMS}; do GOOS=${PLATFORM%/*} diff --git a/build/generate_docs.go b/build/generate_docs.go index 4b51c29..9d6e33f 100644 --- a/build/generate_docs.go +++ b/build/generate_docs.go @@ -9,7 +9,7 @@ import ( "path" "github.com/spf13/cobra/doc" - "github.com/willjcj/param/cmd" + "github.com/thedatashed/param/cmd" ) func main() { @@ -18,7 +18,7 @@ func main() { gopath = build.Default.GOPATH } - docsPath := path.Join(gopath, "src", "github.com", "willjcj", "param", "docs") + docsPath := path.Join(gopath, "src", "github.com", "thedatashed", "param", "docs") err := doc.GenMarkdownTree(cmd.RootCmd, docsPath) if err != nil { diff --git a/cmd/copy.go b/cmd/copy.go index 502e87c..38ffaa3 100644 --- a/cmd/copy.go +++ b/cmd/copy.go @@ -2,7 +2,7 @@ package cmd import ( "github.com/spf13/cobra" - "github.com/willjcj/param/pkg/param" + "github.com/thedatashed/param/pkg/param" ) var verbose bool diff --git a/cmd/list.go b/cmd/list.go index 8921816..ff4d58a 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -4,7 +4,7 @@ import ( "strings" "github.com/spf13/cobra" - "github.com/willjcj/param/pkg/param" + "github.com/thedatashed/param/pkg/param" ) var prefixes string diff --git a/cmd/set.go b/cmd/set.go index 8234e11..0fa847e 100644 --- a/cmd/set.go +++ b/cmd/set.go @@ -2,7 +2,7 @@ package cmd import ( "github.com/spf13/cobra" - "github.com/willjcj/param/pkg/param" + "github.com/thedatashed/param/pkg/param" ) var force bool diff --git a/cmd/show.go b/cmd/show.go index 8fb6095..4c6724d 100644 --- a/cmd/show.go +++ b/cmd/show.go @@ -2,7 +2,7 @@ package cmd import ( "github.com/spf13/cobra" - "github.com/willjcj/param/pkg/param" + "github.com/thedatashed/param/pkg/param" ) var showCmd = &cobra.Command{ diff --git a/main.go b/main.go index c95778f..f160fe6 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/willjcj/param/cmd" + "github.com/thedatashed/param/cmd" ) func main() {