You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Installs Flutter SDKclassInstallCommandextendsCompletionCommand<int> {
@overridefinal name ='install';
@overridefinal description ='Installs foo version';
/// Returns the string that will be returned when tab completion /// is called for this command. /// /// This method should return fast for good user experience.@overrideFuture<String> completions() {
print(MyFooVersionProvider.listAllVersions());
// The above line would print:// 2.1.0// 2.0.0// 1.2.0// 1.1.0// 1.0.1// 1.0.0
}
@overrideFuture<int> run() async { /** code **/ }
Description
I would like to have control over the completions that displayed for my command.
Let's say I have a command
foo install <version>
. This command also has 2 flags--dry-run
and--help
.Current state
Only the flags are suggested:
Expected state
API idea:
Additional Context
A similar CLI package in the Go ecosystem has this feature. See docs.
The text was updated successfully, but these errors were encountered: