Skip to content

Commit

Permalink
update on few small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed May 8, 2024
1 parent 0b851e2 commit 576fe02
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Columns/Media/WebPMediaColumnCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function __invoke(array $args, array $assocArgs)
// Read the template contents, and replace the placeholders with provided variables.
$this->getExampleTemplate(__DIR__, $className)
->renameClassName($className)
->renameGlobals($assocArgs)
->outputWrite(Helpers::getProjectPaths('srcDestination', 'Columns' . \DIRECTORY_SEPARATOR . 'Media'), "{$className}.php", $assocArgs);
}
}
1 change: 1 addition & 0 deletions src/GitIgnore/GitIgnoreCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function __invoke(array $args, array $assocArgs)

// Read the template contents, and replace the placeholders with provided variables.
$this->getExampleTemplate(__DIR__, $className)
->renameGlobals($assocArgs)
->outputWrite($path, '.gitignore', $assocArgs);
}
}
1 change: 1 addition & 0 deletions src/Misc/VersionCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function __invoke(array $args, array $assocArgs)
if (\file_exists(Helpers::getProjectPaths('cliOutput', $file))) {
$this->getExampleTemplate($path, $file, true)
->renameVersionString($version)
->renameGlobals($assocArgs)
->outputWrite(Helpers::getProjectPaths('cliOutput'), $file, $assocArgs);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Readme/ReadmeCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public function __invoke(array $args, array $assocArgs)

// Read the template contents, and replace the placeholders with provided variables.
$this->getExampleTemplate(__DIR__, 'README.md')
->renameGlobals($assocArgs)
->outputWrite($path, 'README.md', $assocArgs);
}
}
1 change: 1 addition & 0 deletions src/Setup/SetupCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function __invoke(array $args, array $assocArgs)

// Get setup.json example file, and create the one in the project.
$this->getExampleTemplate($sourcePath, $fileName)
->renameGlobals($assocArgs)
->outputWrite($path, $fileName, $assocArgs);
}
}

0 comments on commit 576fe02

Please sign in to comment.