Class: RubynCode::CLI::Commands::ContextInfo
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::ContextInfo
show all
- Defined in:
- lib/rubyn_code/cli/commands/context_info.rb
Constant Summary
collapse
- CONTEXT_WINDOW =
200_000
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/context_info.rb', line 7
def self.command_name = '/context'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/context_info.rb', line 8
def self.description = 'Show context window usage'
|
Instance Method Details
#execute(_args, ctx) ⇒ Object
12
13
14
15
|
# File 'lib/rubyn_code/cli/commands/context_info.rb', line 12
def execute(_args, ctx)
stats = estimate_context(ctx)
render_context_bar(stats, ctx)
end
|