Skip to content

Conversation

@studentpiyush
Copy link
Contributor

What this PR does

  • Implements an enhanced HelpCommand for MyCMD.
  • Dynamically lists all available commands from the registry.
  • Shows command names with short descriptions.
  • Supports detailed help for a specific command using help <command>.
  • Fully automatic: new commands added to the registry will appear in the help output.

How to test

  1. Build the project: mvn clean compile
  2. Run the app: mvn exec:java -Dexec.mainClass="com.mycmd.App" (or from your IDE)
  3. In the MyCMD shell:
    • Type help to see all commands
    • Type help <command> for detailed info on a command

Checklist

  • My code follows the project’s style guidelines
  • I have tested my changes locally
  • This is a Hacktoberfest contribution

Fixes #5

@anshumanjadiya1102
Copy link
Member

Sorry @studentpiyush, But There are conflicts, Please resolve them.

@anshumanjadiya1102
Copy link
Member

And Congratulation! You are invited to our GitHub Organization

@studentpiyush
Copy link
Contributor Author

ok wait i am raising a new pr and try to solve the conflicts

@studentpiyush
Copy link
Contributor Author

Hey @anshumanjadiya1102 👋
I think there’s a small misunderstanding — the red part you’re seeing in the diff isn’t an active conflict. It just shows the old code that was replaced by the new enhanced version of the HelpCommand.

This doesn’t cause any functional issues or merge conflicts — it’s simply GitHub’s way of displaying the difference between the previous and updated code.

If you’re referring to any other specific conflict or issue, could you please clarify which part you meant? I’ll be happy to fix it right away. 😊

@anshumanjadiya1102 anshumanjadiya1102 merged commit a2e997a into Drive-for-Java:main Oct 15, 2025
@anshumanjadiya1102 anshumanjadiya1102 added hacktoberfest-accepted This is for Hacktoberfest hacktoberfest This is for Hacktoberfest labels Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest This is for Hacktoberfest hacktoberfest-accepted This is for Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: Implement a 'help' Command

2 participants