bridgetown icon indicating copy to clipboard operation
bridgetown copied to clipboard

Wrong plugins list command count

Open akarzim opened this issue 2 years ago • 0 comments

When running bin/bridgetown plugins list command, the registered plugins count is wrong.

Bridgetown Version: 1.2.0

To Reproduce

  1. Start a new Bridgetown project
  2. run bin/bridgetown plugins list

Current behavior

init (Initializer) is excluded from the list of registered plugins, but is included in the plugin count.

❯ bin/bridgetown plugins list
Registered Plugins: 4
                    dotenv (Initializer)
                    parse_routes (Initializer)
                    ssr (Initializer)
          Builders: 0
                    ----
        Converters: 6
                    Bridgetown::Converters::SerbeaTemplates
                    Bridgetown::Converters::RubyTemplates
                    Bridgetown::Converters::LiquidTemplates
                    Bridgetown::Converters::ERBTemplates
                    Bridgetown::Converters::Markdown
                    Bridgetown::Converters::Identity
                    ----
        Generators: 2
                    Bridgetown::PrototypeGenerator
                    Bridgetown::Paginate::PaginationGenerator

Expected behavior

init (Initializer) must be excluded from the plugin count.

❯ bin/bridgetown plugins list
Registered Plugins: 3
                    dotenv (Initializer)
                    parse_routes (Initializer)
                    ssr (Initializer)
          Builders: 0
                    ----
        Converters: 6
                    Bridgetown::Converters::SerbeaTemplates
                    Bridgetown::Converters::RubyTemplates
                    Bridgetown::Converters::LiquidTemplates
                    Bridgetown::Converters::ERBTemplates
                    Bridgetown::Converters::Markdown
                    Bridgetown::Converters::Identity
                    ----
        Generators: 2
                    Bridgetown::PrototypeGenerator
                    Bridgetown::Paginate::PaginationGenerator

Computing environment (please complete the following information):

  • OS: macOS 11.7.7 (Big Sur)
  • Browser: Firefox
  • Browser Version: 114.0.1
  • Ruby Version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin20]

akarzim avatar Jun 17 '23 11:06 akarzim