Skip to content

Releases: theiskaa/replace

v0.1.1 - 12/10/2023

Choose a tag to compare

@theiskaa theiskaa released this 12 Oct 10:17
7bc3944

Resolved: #7


Added -w/--word option.

rp {OPTIONS} {X} {Y} ... {Z}

The syntax of the replace involves three main components: {OPTIONS}, {X}, {Y}, and one or more instances of {Z}. The components are explained below:

  • {OPTIONS}: You can use the -w or --word option to enable word-based replacements, ensuring an exact, space-free match for segments to be replaced.
  • {X} and {Y}: These are both strings representing the source and target for replacement, respectively. By specifying {X} as the content to be replaced and {Y} as the content to replace it with, you control what changes are made within the files.
  • {Z} elements: These denote the files in which the replacement operation will take place. Each {Z} can refer to a folder or file name, allowing you to define the scope of files to be included in the replacement operation. If {Z} is not provided at all, the "replace" operation will be applied to all matching values found under the current folder. This means that any occurrence of {X} within the files located in the current directory will be replaced with {Y}.

v0.1.0 - 17/09/2023

Choose a tag to compare

@theiskaa theiskaa released this 17 Sep 18:20
0f209fd

Release of very first version of replace(rp)

Install:

  • Clone repository git clone https://github.com/theiskaa/replace
  • Run make to build executable make

Commits:

  • feat(build): add Makefile
  • feat(args): add Args struct and parseArgs method
  • feat(args): improve checkArgs in order to simplify code
  • feat(src): move Args struct to args.h
  • fix(args): fix header definition title
  • feat(files): add FilePathRule struct and generateFilePathRule method
  • feat(docs): fix the example call in readme
  • feat(files): add generateFilePathRoutes method
  • feat(utils): add concatenateStrings to utils
  • feat(files): add collectFiles and generateFullPaths to parse FilePathRule
  • feat(docs): add documentation comments to all files
  • feat(replace): add replace and replaceAll headers and methods
  • feat(files): add readFileContent method to files
  • feat(replace): add replaceXY method to replace
  • fix(replace): fix the typo of replaceXY call in replace method
  • feat(replace): add file writing functionality to replace method
  • fix(replace): fix the successful replacing counting
  • feat(debug): add debugRun and modify main according to release mode