rage-rb / rage

Fast web framework compatible with Rails.
MIT License
803 stars 12 forks source link

Implement `middleware` and `version` commands in the rage/cli.rb file. #99

Closed cuneyter closed 2 months ago

cuneyter commented 3 months ago

Add Middleware and Version Commands to CLI

Description

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:

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.