lucee.Componentcommandbox.system.modules_app.system-commands.commands.tokenReplace
Replace text tokens in one or more files. Token matches are case insensitive. . {code:bash} tokenReplace path=/path/to/file.txt token="@@version@@" replacement=`package version` tokenReplace path=/tests/*.cfc token="@@version@@" replacement=`package version` {code} . Use the "verbose" param to see all the files affected . {code:bash} tokenReplace path=file.txt token="foo" replacement="bar" {code}
Method Summary | |
---|---|
any
|
run(commandbox.system.modules_app.system-commands.commands.Globber path, String token, String replacement, [boolean verbose='false'])
|
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
path
- file(s) to replace tokens in. Globbing patters allowed such as *.txttoken
- The token to search forreplacement
- The replacement text to useverbose
- Output file names that have been modified