Skip to content

Commit 4460ab6

Browse files
author
Josh Newman
committed
Merge branch 'ingshtrom-expose-ls-cmds-too'
2 parents ccfc4d1 + ee83279 commit 4460ab6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cmd/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func runDiffCmd(cmd *cobra.Command, args []string) {
4343

4444
fmt.Println(text.FgBlue.Sprintf("Getting diff between \"%s\" and \"%s\"...", path1, path2))
4545

46-
options := &getParamsOptions{
46+
options := &GetParametersOptions{
4747
Client: ssm.NewFromConfig(awsConfig),
4848
Path: &path1,
4949
Recursive: true,

cmd/ls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func runLsCmd(cmd *cobra.Command, args []string) {
3737

3838
fmt.Println(text.FgBlue.Sprintf("Listing parameters for \"%s\"", path))
3939

40-
options := &getParamsOptions{
40+
options := &GetParametersOptions{
4141
Client: ssm.NewFromConfig(awsConfig),
4242
Path: &path,
4343
Recursive: recursive,
@@ -98,14 +98,14 @@ func runLsCmd(cmd *cobra.Command, args []string) {
9898
}
9999
}
100100

101-
type getParamsOptions struct {
101+
type GetParametersOptions struct {
102102
Client *ssm.Client
103103
Path *string
104104
Recursive bool
105105
Decrypt bool
106106
}
107107

108-
func GetParameters(options *getParamsOptions, params []types.Parameter, nextToken *string) []types.Parameter {
108+
func GetParameters(options *GetParametersOptions, params []types.Parameter, nextToken *string) []types.Parameter {
109109
cfg := &ssm.GetParametersByPathInput{
110110
Path: options.Path,
111111
Recursive: options.Recursive,

cmd/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func runMigrateCmd(cmd *cobra.Command, args []string) {
5757

5858
fmt.Println(text.FgBlue.Sprintf("Migrating %s \"%s\" ==> %s \"%s\"", regionFrom, pathFrom, regionTo, pathTo))
5959

60-
options := &getParamsOptions{
60+
options := &GetParametersOptions{
6161
Client: clientFrom,
6262
Path: &pathFrom,
6363
Recursive: true,

cmd/rm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func runRmCmd(cmd *cobra.Command, args []string) {
3535
var names []string
3636

3737
if recursive {
38-
opts := &getParamsOptions{
38+
opts := &GetParametersOptions{
3939
Client: client,
4040
Path: &path,
4141
Recursive: true,

0 commit comments

Comments
 (0)