Tags: sravan1946/ai-commit
Tags
style(app/Commands): refactor CommitCommand - Move the `diffCommand` method to be above the `commitCommandFor` method. - Remove redundant comments and condition checks. - Reorder methods in a more logical order. - Refactor the `createProcess` method to improve readability and organization.
perf(Generator.php): improve process handling - Add a missing newline in the `__construct` method - Update the `mustRunProcess` and `runProcess` methods to include type declarations - Update the `getHelper` method to include a return type declaration - Modify the `defaultRunningCallback` method to be protected
test(Generators): add string cmd test - Add a test that checks if the `processHelperRun` method successfully runs a string command. - The test uses the `echo` command to output the string 'foo' and expects the command to be successful. - The test is grouped under the directory and file where it is located.
docs(commit): Update dependencies in README files - Updated the dependencies list in the README files. - Added GitHub Copilot CLI to the list. - Removed unnecessary dependencies from the list. - Fixed typo in one of the dependencies. - Made formatting improvements to the README files.
refactor(logging): replace NullLogger with ConsoleLogger for verbose … …output This commit enhances the logging mechanism by introducing ConsoleLogger for verbose output in the AppServiceProvider. The change allows for more detailed logging in the console while maintaining the option to use a NullLogger for non-verbose environments. The implementation ensures compatibility with existing configurations by only using ConsoleLogger when the current logger is not a NullLogger. - Added ConsoleLogger import to the AppServiceProvider - Modified the logger extension to conditionally return a ConsoleLogger - Preserves existing behavior for non-console or non-verbose contexts
refactor(Generators): update BitoCliGenerator to improve process hand… …ling - Remove file writing operation for prompt file. - Modify command resolution to use parameters directly. - Set input for the process instead of using a temporary file. - Enhance output handling by maintaining color coding for different output types.
refactor(ConfigCommand): simplify argToValue function - Remove unnecessary conditional checks for 'null', 'true', 'false', and numeric values. - Retain the JSON decoding functionality for valid JSON strings. - Return the decoded value or the original argument if not a valid JSON.
fix(Exceptions): Correct error message formatting - Adjusted the error message formatting in the ValidationException handler. - Added a newline before the error list to improve readability. - Ensured that each error message is prefixed with a hyphen for clarity.
feat(commit): add optional diff parameter for commit command - Introduced an optional 'diff' parameter to allow users to specify diff content directly. - Updated the command to use the provided diff option if available, enhancing flexibility. - Ensured that if no diff is specified, the command defaults to the previous behavior.
PreviousNext