Class: RubynCode::CLI::Commands::Resume
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::Resume
show all
- Defined in:
- lib/rubyn_code/cli/commands/resume.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
aliases, all_names, hidden?
Class Method Details
.command_name ⇒ Object
7
|
# File 'lib/rubyn_code/cli/commands/resume.rb', line 7
def self.command_name = '/resume'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/resume.rb', line 8
def self.description = 'Resume a session or list recent sessions'
|
Instance Method Details
#execute(args, ctx) ⇒ Object
10
11
12
13
14
15
16
17
18
|
# File 'lib/rubyn_code/cli/commands/resume.rb', line 10
def execute(args, ctx)
session_id = args.first
if session_id
resume_session(session_id, ctx)
else
list_sessions(ctx)
end
end
|