Class: Ace::Idea::CLI::Commands::Status
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Idea::CLI::Commands::Status
- Includes:
- Support::Cli::Base
- Defined in:
- lib/ace/idea/cli/commands/status.rb
Overview
ace-support-cli Command class for ace-idea status
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ace/idea/cli/commands/status.rb', line 28 def call(**) manager = Ace::Idea::Organisms::IdeaManager.new all_ideas = manager.list(in_folder: "all") config = Ace::Idea::Molecules::IdeaConfigLoader.load limits = resolve_limits(config, ) categorized = Ace::Support::Items::Molecules::StatusCategorizer.categorize( all_ideas, up_next_limit: limits[:up_next], recently_done_limit: limits[:recently_done], pending_statuses: %w[pending], done_statuses: %w[done] ) puts Ace::Idea::Molecules::IdeaDisplayFormatter.format_status( categorized, all_ideas: all_ideas ) end |