Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type GetParameterOptions struct {
func GetParameter(options *GetParameterOptions) (string, error) {
out, err := options.Client.GetParameter(context.TODO(), &ssm.GetParameterInput{
Name: &options.Name,
WithDecryption: options.Decrypt,
WithDecryption: &options.Decrypt,
})
if err != nil {
return "", err
Expand Down
4 changes: 2 additions & 2 deletions cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ type GetParametersOptions struct {
func GetParameters(options *GetParametersOptions, params []types.Parameter, nextToken *string) []types.Parameter {
cfg := &ssm.GetParametersByPathInput{
Path: options.Path,
Recursive: options.Recursive,
WithDecryption: options.Decrypt,
Recursive: &options.Recursive,
WithDecryption: &options.Decrypt,
}

if nextToken != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func runMigrateCmd(cmd *cobra.Command, args []string) {
Name: &name,
Type: param.Type,
Value: param.Value,
Overwrite: overwrite,
Overwrite: &overwrite,
}

if _, err := clientTo.PutParameter(context.TODO(), input); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cmd/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func runPutCmdContext(cmd *cobra.Command, args []string, ctx string) {
Name: &path,
Value: &value,
Type: types.ParameterType(valueType),
Overwrite: overwrite,
Overwrite: &overwrite,
})

if err != nil {
Expand Down Expand Up @@ -123,7 +123,7 @@ func runPutCmd(cmd *cobra.Command, args []string) {
Name: &path,
Value: &value,
Type: types.ParameterType(valueType),
Overwrite: overwrite,
Overwrite: &overwrite,
})

if err != nil {
Expand Down
36 changes: 15 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,22 @@ module github.com/technicallyjosh/easy-params
go 1.16

require (
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/atotto/clipboard v0.1.4
github.com/aws/aws-sdk-go-v2 v1.2.1
github.com/aws/aws-sdk-go-v2/config v1.1.2
github.com/aws/aws-sdk-go-v2/service/ssm v1.1.2
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-openapi/errors v0.20.0 // indirect
github.com/go-openapi/strfmt v0.20.0 // indirect
github.com/aws/aws-sdk-go-v2 v1.30.3
github.com/aws/aws-sdk-go-v2/config v1.27.27
github.com/aws/aws-sdk-go-v2/service/ssm v1.52.3
github.com/go-openapi/strfmt v0.23.0 // indirect
github.com/jedib0t/go-pretty v4.3.0+incompatible
github.com/magiconair/properties v1.8.4 // indirect
github.com/mattn/go-runewidth v0.0.10 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pelletier/go-toml v1.8.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/spf13/afero v1.5.1 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.3
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.7.1
go.mongodb.org/mongo-driver v1.5.0 // indirect
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005 // indirect
golang.org/x/text v0.3.5 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sagikazarmark/locafero v0.6.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
go.mongodb.org/mongo-driver v1.16.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/sys v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
)
Loading