Skip to content

Conversation

@Kaveeshakavindi
Copy link
Contributor

Changes Included

Added: com.mycmd.commands.Rename.java

  1. Implements the rename command using Java NIO (Files.move()).
  2. Supports renaming both files and directories.
  3. Uses ShellContext.resolvePath() for relative path resolution.
  4. Displays success or error messages to the user.
  5. Includes usage and description metadata.

Modified:

  1. App.java (or equivalent main shell entry file)
  2. Registered the new rename command in the command map or registry.
  3. Added optional alias ren → rename for command consistency.

Testing

  1. Verified file renaming in current directory and subdirectories.

@github-actions
Copy link
Contributor

🚀 Hi @Kaveeshakavindi!

Thank you for contributing to MyCMD. A maintainer will review your PR shortly. 🎉

@github-actions
Copy link
Contributor

🚀 Hi @Kaveeshakavindi!

Thank you for contributing to MyCMD. A maintainer will review your PR shortly. 🎉

@anshumanjadiya1102 anshumanjadiya1102 added hacktoberfest-accepted This is for Hacktoberfest hacktoberfest This is for Hacktoberfest and removed needs-review labels Oct 24, 2025
@anshumanjadiya1102 anshumanjadiya1102 merged commit 343f77e into Drive-for-Java:main Oct 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from-fork hacktoberfest This is for Hacktoberfest hacktoberfest-accepted This is for Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants