dotnet / dotnet/command-line-api

[Feature or Documentation Request] How to get the list of completions at runtime?

Open
#1,807 1 comment 0 reactions 0 assignees View on GitHub
needs documentation
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

I'm making a REPL with `System.CommandLine` and so far it's going great. One thing missing is tab completion. Ideally I could do something like `parser.GetCompletions("tic")`. Is this currently possible?

It seems most of the things related to completions are internal. If it isn't currently possible, how easy would it be to work around it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.