This PR updates Rage’s CLI utility to add the rage middleware and rage version commands to enhance its functionality.
Issue Addressed
Issue: Add middleware and version commands
The Rage::CLI class needs additional commands to provide more detailed information about the application. These commands include:
middleware: Lists the Rack middleware stack enabled for the application.
version: Returns the current version of the framework.
Changes Made
middleware Command:
Lists the Rack middleware stack enabled for the application.
Example: rage middleware => "Rage::FiberWrapper Rage::Reloader"
version Command:
Returns the current version of the framework.
Example: rage version => "1.0.0"
RSpec Test:
Added tests to check if the commands are returning the expected result.
Documentation
Examples for each command have been added to the Rage::CLI class.
Add Middleware and Version Commands to CLI
Description
This PR updates Rage’s CLI utility to add the
rage middleware
andrage version
commands to enhance its functionality.Issue Addressed
Issue: Add middleware and version commands The Rage::CLI class needs additional commands to provide more detailed information about the application. These commands include:
middleware
: Lists the Rack middleware stack enabled for the application.version
: Returns the current version of the framework.Changes Made
middleware
Command:Lists the Rack middleware stack enabled for the application. Example:
rage middleware
=> "Rage::FiberWrapper Rage::Reloader"version
Command:Returns the current version of the framework. Example:
rage version
=> "1.0.0"RSpec Test:
Added tests to check if the commands are returning the expected result.
Documentation
Examples for each command have been added to the Rage::CLI class.