Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
ffcb169
Pipe audit command output to
Marton6 Mar 20, 2020
4855d97
Remove redundant print
Marton6 Mar 20, 2020
35075bd
Restructure paginatedWriter & implement proper cleanup
Marton6 Mar 20, 2020
530d94c
Add comments to paginated Writer
Marton6 Mar 20, 2020
f853dcd
Make PAGER envvar name a constant
Marton6 Mar 20, 2020
efda400
Add paginator not found error
Marton6 Mar 22, 2020
45fdb13
Format audit log as a table
Marton6 Mar 24, 2020
38d619e
Update checking available paginator to not error on wrong configuration
Marton6 Mar 24, 2020
05a283d
Reorder functions
Marton6 Mar 24, 2020
2458e7b
Factor out default terminal width as a constant
Marton6 Mar 24, 2020
0021d44
Update terminal paginator comments
Marton6 Mar 24, 2020
e7f1728
Hide --per-page flag as it is no longer meaningful
Marton6 Mar 24, 2020
93297e6
Explicitly ignore pager command exit code error
Marton6 Mar 24, 2020
262c188
Remove unnecessary index
Marton6 Mar 24, 2020
6139004
Add json format and factor out table row formatting
Marton6 Mar 26, 2020
c9a39f4
Add optional maximum width attribute to audit table columns and scale…
Marton6 Mar 26, 2020
3f04f4d
Fix typo
Marton6 Mar 26, 2020
cddc98b
Add distributing leftover table width to each column
Marton6 Mar 26, 2020
5f9b46f
Add tests for column width computation
Marton6 Mar 26, 2020
26b18f3
Refactor aligning columns and printing '\n'
Marton6 Mar 26, 2020
a55e896
Refactor line wrapping in table cells
Marton6 Mar 26, 2020
9f69116
Add more audit table formatting tests
Marton6 Mar 26, 2020
b58e884
Refactor AuditCommand to allow mocking
Marton6 Mar 26, 2020
62377e2
Update audit tests & add fake pager
Marton6 Mar 26, 2020
e4965e5
Reorder audit functions
Marton6 Mar 26, 2020
ecb8658
Add fallback pager that is used when no terminal pager is found
Marton6 Mar 26, 2020
bb161b7
Add tests for fallback pager
Marton6 Mar 26, 2020
2085ca7
Fix bug in fallback pager
Marton6 Mar 26, 2020
782832d
Add comment to fake pager
Marton6 Mar 26, 2020
d7e5c36
Update description of audit command
Marton6 Mar 27, 2020
0960fef
Improve comments
Marton6 Apr 1, 2020
a1fc9db
Change --json flag to --output-format
Marton6 Apr 1, 2020
74608dc
Fix punctuation
Marton6 Apr 1, 2020
eefac66
Improve naming of fallbackPager and printHeader
Marton6 Apr 1, 2020
9d114fd
Update pager to return error when pager command is closed instead of …
Marton6 Apr 1, 2020
1d2f3c3
Fix lint errors
Marton6 Apr 1, 2020
078b0bb
Refactor paginatedWriter.Close
Marton6 Apr 1, 2020
0260d71
Remove unused method
Marton6 Apr 1, 2020
e179303
Rename audit log entry formatters
Marton6 Apr 3, 2020
6280db3
Update audit command description of scriptable output formats
Marton6 Apr 3, 2020
e15b11c
Reformat struct initialization
Marton6 Apr 3, 2020
9496a84
Reformat struct initialization
Marton6 Apr 3, 2020
4e9ade6
Rename didPrintHeader to headerPrinted
Marton6 Apr 3, 2020
8072852
Merge branch 'feature/audit-log-bash-pagination' of github.com:secret…
Marton6 Apr 3, 2020
6d351c7
Refactor audit log table formatting into multiple smaller methods
Marton6 Apr 3, 2020
cef2d1e
Convert json formatted audit log entry keys to PascalCase
Marton6 Apr 3, 2020
12b75b5
Restructure pagination and formatting code.
Marton6 Apr 6, 2020
5e9ba99
Improve commenting of table column width calculation
Marton6 Apr 6, 2020
4e00062
Refactor pager program checks
Marton6 Apr 6, 2020
c9d4d0b
Add error code to displayed error
Marton6 Apr 6, 2020
ee5135c
Refactor terminal pager command logic
Marton6 Apr 6, 2020
c9d6d03
Use errio for error formatting
Marton6 Apr 6, 2020
024dcfa
Rename fixedWidths to adjustedWidths
Marton6 Apr 6, 2020
3ab60f9
Rename formatter.go to list_formatters.go
Marton6 Apr 6, 2020
9377a5f
Rename rowToGrid to fitToColumns
Marton6 Apr 6, 2020
5645fc4
Move fallback pager creation to pager package
Marton6 Apr 7, 2020
443977f
Fix typo
Marton6 Apr 7, 2020
c03f5d1
Implement morea overriding less
Marton6 Apr 7, 2020
0b8c9a8
Merge branch 'develop' into feature/audit-log-bash-pagination
Marton6 Apr 15, 2020
6a3dec9
Use ui.io.Stdout() as pager stdout
Marton6 Apr 15, 2020
634d4a0
Fix tests
Marton6 Apr 15, 2020
0cca734
Remove unused file struct from io_windows.go
mackenbach Apr 24, 2020
3653627
Make isPiped work on windows and non-windows
mackenbach Apr 24, 2020
e464121
Remove windows specific colorable stdout wrapper
mackenbach Apr 24, 2020
1b5e4e2
Add godoc
mackenbach Apr 24, 2020
5af427e
Make Input and Output private fields
mackenbach Apr 24, 2020
b8bbfe7
Move differences in implementation to separate structs
jpcoenen Apr 24, 2020
f06aad7
Rename Stdin and Stdout to Input and Output
jpcoenen Apr 24, 2020
4ceb9a1
Add Stdin() and Stdout() to IO interface
jpcoenen Apr 24, 2020
6800b51
Fix Windows interface implementation
jpcoenen Apr 24, 2020
ca647e0
Move ui fake to separate package
jpcoenen Apr 24, 2020
4ba99d7
Remove obsolete package
jpcoenen Apr 24, 2020
ea95a55
Only construct colored output for Windows once
jpcoenen May 4, 2020
50edf44
Pass Stdout instead of Output() in run
jpcoenen May 4, 2020
7731821
Rename IsStdinPiped and IsStdoutPiped to IsInputPiped/IsOutputPiped
jpcoenen May 4, 2020
33a839c
Fix disappeared newlines
jpcoenen May 4, 2020
1cb0640
Fix comments for Prompts
jpcoenen May 4, 2020
d6c9960
Setup empty files for fakeui Stdout and Stdin
jpcoenen May 4, 2020
043f61c
Update to go 1.14
jpcoenen May 4, 2020
794811f
Create files in subdirectory of tmpdir
jpcoenen May 4, 2020
004f46b
Read stdout in test
jpcoenen May 4, 2020
fc2c793
Make NewFallbackPager unexported
Marton6 May 5, 2020
aeaaf25
Use timestamps formatted to RFC3339 when outputting json
Marton6 May 5, 2020
121e14a
Merge pull request #284 from secrethub/fix/dockerfile-go-version
florisvdg May 6, 2020
368d9a7
Merge remote-tracking branch 'origin/develop' into fix/build-windows
jpcoenen May 7, 2020
ee19601
Reintroduce ReadPassword() in IO interface
jpcoenen May 8, 2020
4a3c764
Rename ReadPassword to ReadSecret and add comments to IO interface
jpcoenen May 8, 2020
e6ed6df
Merge branch 'feature/audit-log-bash-pagination' into fix/build-windows
jpcoenen May 18, 2020
04e8b68
Update all CircleCI jobs to Go 1.14
jpcoenen May 18, 2020
0c8ae41
Merge pull request #277 from secrethub/fix/build-windows
jpcoenen May 18, 2020
29f58b3
Implement printing unaligned table rows when output is piped
Marton6 May 18, 2020
dc029e7
Add 1000 line limit when audit output is piped
Marton6 May 18, 2020
f7701f4
Add limit flag
Marton6 May 18, 2020
7b8769d
Fix typo in comment
Marton6 May 18, 2020
3528acb
Update tests with limit flag value
Marton6 May 18, 2020
a417a2d
Fix setting default value of limit flag
Marton6 May 18, 2020
c8b6a64
Merge pull request #288 from secrethub/update-readme
SimonBarendse May 25, 2020
d06f554
Update secrethub-go to include GCP IdP
jpcoenen May 27, 2020
c1699e8
Add service commands for GCP service accounts
jpcoenen May 27, 2020
98b1d59
Directly validate email address on prompt
jpcoenen May 28, 2020
367a8c7
Rename --limit flag to --max-results
Marton6 May 30, 2020
c1229de
Implement accepting multiple arguments for mkdir command
Marton6 May 30, 2020
9782a75
Fix tests
Marton6 May 30, 2020
c1b921d
Add tests for mkdir with multiple args
Marton6 May 30, 2020
dd39a7e
Add comments
Marton6 May 30, 2020
ef890b1
Move dir path validation to Set method
Marton6 May 30, 2020
c2b5f44
Hide GCP subcommand
jpcoenen Jun 3, 2020
7092a12
Update to latest version of secrethub-go
jpcoenen Jun 3, 2020
2eba243
Merge pull request #291 from secrethub/master
SimonBarendse Jun 3, 2020
71c5818
Support user in choosing options for creating GCP service account
jpcoenen Jun 3, 2020
64a110f
Add missing handling of GCP errors
jpcoenen Jun 3, 2020
8878531
Improve CLI help text
jpcoenen Jun 3, 2020
ce56a0a
Defer cancel
jpcoenen Jun 3, 2020
0827d5e
Initialize with non-zero capacity to prevent some allocations
jpcoenen Jun 3, 2020
c31fe25
Only validate if validateFunc is set
jpcoenen Jun 3, 2020
863a6fe
Test service listing with GCP service accounts
jpcoenen Jun 3, 2020
584e755
Make mkdir execute for all arguments and log errors
Marton6 Jun 3, 2020
d33c6c4
Add test for verifying that mkdir executes for all arguments
Marton6 Jun 3, 2020
aca52b6
Merge pull request #269 from secrethub/feature/audit-log-bash-pagination
Marton6 Jun 3, 2020
e269e26
Make proxy for HTTP-client configurable through flag
jpcoenen Jun 4, 2020
ee49cd1
Set proxy for all clients
jpcoenen Jun 4, 2020
a0b5ec9
Add test for proxy configuration
jpcoenen Jun 4, 2020
b681e5c
Add missing errcheck
jpcoenen Jun 4, 2020
b0c6d2d
Merge pull request #293 from secrethub/feature/configure-proxy
jpcoenen Jun 4, 2020
e51fb3c
Hide gcp Identity Provider option
jpcoenen Jun 5, 2020
3728d34
Merge pull request #292 from secrethub/feature/gcp-idp
jpcoenen Jun 5, 2020
1695716
Merge branch 'develop' into feature/mkdir-multiple-directory-args
jpcoenen Jun 8, 2020
bcec05e
Update to secrethub-go v0.29.0
jpcoenen Jun 8, 2020
378ab5e
Rephrase mkdir error message
SimonBarendse Jun 8, 2020
b393f49
Merge pull request #294 from secrethub/feature/update-secrethub-go
SimonBarendse Jun 8, 2020
68d3efb
Fix formatting
jpcoenen Jun 8, 2020
49f23fb
Merge pull request #290 from secrethub/feature/mkdir-multiple-directo…
jpcoenen Jun 9, 2020
e9553d3
Hide description if empty
jpcoenen Jun 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
arch:
type: string
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.14
steps:
- checkout
- run: GOOS=<< parameters.os >> GOARCH=<< parameters.arch >> go build ./cmd/secrethub
test:
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.14
steps:
- checkout
- restore_cache:
Expand All @@ -33,7 +33,7 @@ jobs:
- run: make test
verify-goreleaser:
docker:
- image: goreleaser/goreleaser:v0.127
- image: goreleaser/goreleaser:v0.133
steps:
- checkout
- run: goreleaser check
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.13-alpine as build_base
FROM golang:1.14-alpine as build_base
WORKDIR /build
ENV GO111MODULE=on
RUN apk add --update git
Expand Down
14 changes: 9 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module github.com/secrethub/secrethub-cli

go 1.13
go 1.14

require (
bitbucket.org/zombiezen/cardcpx v0.0.0-20150417151802-902f68ff43ef
cloud.google.com/go v0.57.0 // indirect
github.com/alecthomas/kingpin v1.3.8-0.20200323085623-b6657d9477a6
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
github.com/atotto/clipboard v0.1.2
github.com/aws/aws-sdk-go v1.25.49
github.com/docker/go-units v0.3.3
Expand All @@ -16,10 +18,12 @@ require (
github.com/mitchellh/mapstructure v1.1.2
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
github.com/secrethub/demo-app v0.1.0
github.com/secrethub/secrethub-go v0.28.0
github.com/secrethub/secrethub-go v0.29.0
github.com/zalando/go-keyring v0.0.0-20190208082241-fbe81aec3a07
golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223
golang.org/x/text v0.3.0
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e
golang.org/x/text v0.3.2
google.golang.org/api v0.26.0
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
gopkg.in/yaml.v2 v2.2.2
)
305 changes: 303 additions & 2 deletions go.sum

Large diffs are not rendered by default.

193 changes: 0 additions & 193 deletions internals/cli/configuration/configuration.go

This file was deleted.

56 changes: 0 additions & 56 deletions internals/cli/configuration/migrater.go

This file was deleted.

Loading