Skip to content

Releases: suzuki-shunsuke/tfmv

v0.2.5

31 Jan 23:59
v0.2.5
13928f7
Compare
Choose a tag to compare

Pull Requests | Issues | v0.2.4...v0.2.5

🐛 Bug Fixes

#68 Fix a typo in the help message
#96 Fix a bug that a leading newline is added to new created moved block files

v0.2.4

23 Dec 13:47
v0.2.4
7a3552a
Compare
Choose a tag to compare

Pull Requests | Issues | v0.2.3...v0.2.4

Fixes

#39 Change the log level from info to debug

Info log was messy, so we changed the log level to debug

v0.2.3

23 Dec 12:11
v0.2.3
771047b
Compare
Choose a tag to compare

Pull Requests | Issues | v0.2.2...v0.2.3

Others

#37 Fix typo
#36 Add unit tests
#37 Add integration tests

v0.2.2

23 Dec 04:14
v0.2.2
9dd4527
Compare
Choose a tag to compare

Pull Requests | Issues | v0.2.1...v0.2.2

Features

#35 Support renaming data sources

v0.2.1

23 Dec 00:21
v0.2.1
39098ac
Compare
Choose a tag to compare

Pull Requests | Issues | v0.2.0...v0.2.1

Features

#26 #28 Output a summary of changes

tfmv outputs a summary of changes in JSON format to stdout

$ tfmv -Rr '-/_'
{
  "changes": [
    {
      "dir": "regexp",
      "address": "github_repository.example-1",
      "new_address": "github_repository.example_1"
    },
    {
      "dir": "bar",
      "address": "github_repository.example-1",
      "new_address": "github_repository.example_1"
    },
    {
      "dir": "foo/nest",
      "address": "null_resource.foo-prod",
      "new_address": "null_resource.foo_prod"
    },
    {
      "dir": ".",
      "address": "github_repository.example-1",
      "new_address": "github_repository.example_1"
    }
  ]
}

#31 Validate new names
#25 Support renaming resources by regular expression

The option --regexp is added:

tfmv --regexp '^example-(\d+)/test-$1'

About regular expression, please see the following document:

#24 Support filtering resources using regular expression

Options --include and --exclude are added:

tfmv -r "-/_" --include "^aws_"
tfmv -r "-/_" --exclude "^aws_"

Fixes

#29 Fix references in files other than given files
#27 Fix a bug that references are modified with --dry-run

v0.2.0

22 Dec 01:17
v0.2.0
42e8958
Compare
Choose a tag to compare

Pull Requests | Issues | v0.1.4...v0.2.0

⚠️ Breaking Changes

The short flag of --recursive is changed from -r to -R

tfmv -R # --recursive

Features

Add a short flag for --replace

tfmv -r "-/_" # --replace

v0.1.4

22 Dec 01:02
v0.1.4
65d165e
Compare
Choose a tag to compare

Pull Requests | Issues | v0.1.3...v0.1.4

Features

#15 Fix resource and module references

v0.1.3

21 Dec 08:43
v0.1.3
e083868
Compare
Choose a tag to compare

Pull Requests | Issues | v0.1.2...v0.1.3

🐛 Bug Fixes

#12 Fix a bug that moved blocks for modules are broken

v0.1.2

21 Dec 06:39
v0.1.2
9c10577
Compare
Choose a tag to compare

Pull Requests | Issues | v0.1.1...v0.1.2

Features

#9 Support --replace option

e.g. Replace - with _:

tfmv --replace "-/_"

v0.1.1

21 Dec 05:26
v0.1.1
ba2d960
Compare
Choose a tag to compare

Pull Requests | Issues | v0.1.0...v0.1.1

Others

#8 Fix a bug that tfmv can't be installed by Homebrew
#7 bc7267a build(deps): bump golang.org/x/crypto from 0.17.0 to 0.31.0