Class: BruteCLI::CLI::Commands::Sessions
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- BruteCLI::CLI::Commands::Sessions
- Defined in:
- lib/brute_cli/cli/commands/sessions.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/brute_cli/cli/commands/sessions.rb', line 13 def call(**) sessions = Execution.list_sessions if sessions.empty? puts "No saved sessions." return end sessions.each do |s| age = format_age(s[:mtime]) puts "#{s[:id]} #{age}" end end |