Skip to content

Commit

Permalink
Merge pull request #70 from bilalcaliskan/devel #major
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
bilalcaliskan authored Jun 12, 2023
2 parents 0c5a7fe + 623c5b5 commit 9cdab77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions cmd/tags/remove/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (
"github.com/spf13/cobra"
)

const outputStr string = "%s=%s\n"

func init() {
tagOpts = options.GetTagOptions()
}
Expand Down Expand Up @@ -79,12 +81,12 @@ var (

logger.Info().Msg("here is the list of current tags")
for i, v := range tagOpts.ActualTags {
fmt.Printf("%s=%s\n", i, v)
fmt.Printf(outputStr, i, v)
}

logger.Info().Msg("will try to remove below tags")
for i, v := range tagOpts.TagsToRemove {
fmt.Printf("%s=%s\n", i, v)
fmt.Printf(outputStr, i, v)
}

utils.RemoveMapElements(tagOpts.ActualTags, tagOpts.TagsToRemove)
Expand All @@ -107,7 +109,7 @@ var (
logger.Info().Msg("successfully removed target tags")
logger.Info().Msg("here is the list of current tags again")
for i, v := range tagOpts.ActualTags {
fmt.Printf("%s=%s\n", i, v)
fmt.Printf(outputStr, i, v)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/bilalcaliskan/s3-manager
go 1.20

require (
github.com/aws/aws-sdk-go v1.44.275
github.com/aws/aws-sdk-go v1.44.280
github.com/dimiro1/banner v1.1.0
github.com/manifoldco/promptui v0.9.0
github.com/rs/zerolog v1.29.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/aws/aws-sdk-go v1.44.275 h1:VqRULgqrigvQLll4e4hXuc568EQAtZQ6jmBzLlQHzSI=
github.com/aws/aws-sdk-go v1.44.275/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.280 h1:UYl/yxhDxP8naok6ftWyQ9/9ZzNwjC9dvEs/j8BkGhw=
github.com/aws/aws-sdk-go v1.44.280/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM=
Expand Down

0 comments on commit 9cdab77

Please sign in to comment.