MCPcopy Create free account

hub / github.com/craftvscruft/tfrefactor / functions

Functions58 in github.com/craftvscruft/tfrefactor

↓ 13 callersFunctionCheckFatal
(err error)
cmd/rename.go:36
↓ 5 callersFunctionParseAddress
(addr string)
refactor/address.go:39
↓ 5 callersMethodRefNameArray
()
refactor/address.go:21
↓ 3 callersMethodBlockType
()
refactor/address.go:32
↓ 3 callersFunctionParseHclFile
(filename string)
refactor/parse.go:15
↓ 3 callersMethodaddFileUpdate
(fileUpdate *FileUpdate)
refactor/update_plan.go:13
↓ 3 callersFunctiondiffText
(beforeText, afterText string, context int)
refactor/diff.go:5
↓ 2 callersFunctionMv
(fromAddressString, toFile, configPath string)
refactor/mv.go:13
↓ 2 callersFunctionParseHclBytes
Source parses HCL and returns *hclwrite.File filename is a metadata of input stream and used only for an error message.
refactor/parse.go:25
↓ 2 callersMethodRefName
()
refactor/address.go:28
↓ 2 callersFunctionRenameInFile
(filename string, file *hclwrite.File, fromAddress, toAddress *Address)
refactor/rename.go:59
↓ 2 callersFunctionapplyUpdate
(plan *refactor.UpdatePlan)
cmd/apply.go:43
↓ 2 callersFunctionapproveAndApplyUpdate
(cmd *cobra.Command, plan *refactor.UpdatePlan)
cmd/apply.go:11
↓ 2 callersFunctioncreateTraversal
(labels []string)
refactor/rename.go:45
↓ 2 callersFunctionfindOrCreateLocalsBlock
(parsedFile *hclwrite.File)
refactor/mv.go:70
↓ 2 callersFunctionmatchLabels
matchLabels returns true only if the matched and false otherwise.
refactor/rename.go:121
↓ 2 callersFunctionnewUpdatePlan
()
refactor/update_plan.go:16
↓ 2 callersFunctionnewVersionCmd
()
cmd/version.go:17
↓ 2 callersFunctionnormalizeNewlines
NormalizeNewlines normalizes \r\n (windows) and \r (mac) into \n (unix)
refactor/mv_test.go:188
↓ 2 callersFunctionsafeParseConfig
safeParseConfig parses config and recovers if panic occurs. The current hclwrite implementation is no perfect and will panic if unparseable input is g
refactor/parse.go:33
↓ 2 callersFunctionsetDefaultStream
(cmd *cobra.Command)
cmd/root.go:21
↓ 1 callersFunctionExecute
()
cmd/root.go:27
↓ 1 callersFunctionRename
(fromAddressString, toAddressString, configPath string)
refactor/rename.go:11
↓ 1 callersFunctionRenameLocalInFile
(filename string, file *hclwrite.File, fromAddress, toAddress *Address)
refactor/rename.go:84
↓ 1 callersFunctionRenameVariablePrefixInBody
(blockType string, body *hclwrite.Body, fromAddress, toAddress *Address)
refactor/rename.go:98
↓ 1 callersFunctionassertFileHasContents
(t *testing.T, expectedFile string, actualContents string)
refactor/mv_test.go:176
↓ 1 callersFunctionassertMockCmd
assertMockCmd is a high-level test helper to run a given mock command with arguments and check if an error and its stdout are expected.
cmd/mock.go:29
↓ 1 callersFunctionassertMockCmdFileOutput
assertMockCmd is a high-level test helper to run a given mock command with arguments and check if an error and its stdout are expected.
refactor/mv_test.go:144
↓ 1 callersFunctionfileNames
(vs []os.FileInfo)
refactor/mv_test.go:134
↓ 1 callersFunctionfindBlocks
(b *hclwrite.Body, address *Address)
refactor/rename.go:109
↓ 1 callersFunctionmin
(a, b int)
refactor/mv.go:128
↓ 1 callersFunctionmockErr
mockErr is a helper function which returns a string written to mocked err stream.
cmd/mock.go:59
↓ 1 callersFunctionmockOut
mockOut is a helper function which returns a string written to mocked out stream.
cmd/mock.go:64
↓ 1 callersFunctionmoveAddrToFile
(addr *Address, parsedInFile, parsedOutFile *hclwrite.File)
refactor/mv.go:150
↓ 1 callersFunctionmoveBlock
(addr *Address, parsedInFile, parsedOutFile *hclwrite.File)
refactor/mv.go:135
↓ 1 callersFunctionmoveLocal
(localName string, parsedInFile, parsedOutFile *hclwrite.File)
refactor/mv.go:100
↓ 1 callersFunctionmoveLocals
(parsedInFile, parsedOutFile *hclwrite.File)
refactor/mv.go:82
↓ 1 callersFunctionnewDocCmd
()
cmd/doc.go:12
↓ 1 callersFunctionnewMockCmd
newMockCmd is a helper function which returns a *cobra.Command whose in/out/err streams are mocked for testing.
cmd/mock.go:15
↓ 1 callersFunctionnewMvCmd
()
cmd/mv.go:16
↓ 1 callersFunctionnewRenameCmd
()
cmd/rename.go:17
↓ 1 callersFunctionrunMockCmd
runMockCmd is a helper function which parses flags and invokes a given mock command.
cmd/mock.go:49
FunctionTestMv
(t *testing.T)
refactor/mv_test.go:16
FunctionTestTfRenameWithReferencesFilter
(t *testing.T)
refactor/rename_test.go:7
FunctionTestVersion
(t *testing.T)
cmd/version_test.go:7
FunctioncopyFile
(src string, dest string)
refactor/mv_test.go:114
Functioninit
()
cmd/rename.go:13
Functioninit
()
cmd/doc.go:8
Functioninit
()
cmd/root.go:17
Functioninit
()
cmd/mv.go:12
Functioninit
()
cmd/version.go:13
FunctionlabelsEqual
(a, b []string)
refactor/mv.go:116
Functionmain
()
main.go:5
FunctionrunDocCmd
(cmd *cobra.Command, args []string)
cmd/doc.go:20
FunctionrunMvCmd
(cmd *cobra.Command, args []string)
cmd/mv.go:36
FunctionrunRenameCmd
(cmd *cobra.Command, args []string)
cmd/rename.go:42
FunctionrunVersionCmd
(cmd *cobra.Command, args []string)
cmd/version.go:25
FunctionwriteParsedFile
(parsedFile *hclwrite.File, toFile string)
refactor/mv.go:78