Skip to content
Snippets Groups Projects
Commit 6c660ebc authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add cli completion of new introspection commands

parent 0552b925
No related branches found
No related tags found
1 merge request!60Dev
Pipeline #28976 passed
......@@ -55,6 +55,12 @@ ReadlinePromptCompletion::CompletionContext ReadlinePromptCompletion::context (
else if ( startswith ( line, "introspect overloads" ) && start == 21 )
return CompletionContext::ALGORITHM;
 
else if ( startswith ( line, "introspect variables" ) && start == 21 )
return CompletionContext::VARIABLE;
else if ( startswith ( line, "introspect bindings" ) && start == 20 )
return CompletionContext::BINDING;
/* TODO
else if ( startswith ( line, "introspect algorithms" ) && start == 21 )
else if ( startswith ( line, "introspect casts" ) && start == 17 )
......
......@@ -37,7 +37,7 @@ class ReadlinePromptCompletion {
}
 
static std::set < std::string > fetchCommandsIntrospect ( const char *text ) {
return filter_completions ( { "algorithms", "overloads", "casts", "datatypes" }, text );
return filter_completions ( { "algorithms", "overloads", "casts", "datatypes", "variables", "bindings" }, text );
}
 
static std::set < std::string > fetchBindings ( const char *text ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment