Skip to content

Commit

Permalink
feat: add command runner constructor arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Dec 5, 2023
1 parent abded18 commit 660c143
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lib/src/command_runner/completion_command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ import 'package:meta/meta.dart';
/// manually install completion files.
abstract class CompletionCommandRunner<T> extends CommandRunner<T> {
/// {@macro completion_command_runner}
CompletionCommandRunner(super.executableName, super.description) {
CompletionCommandRunner(
super.executableName,
super.description, {
super.usageLineLength,
super.suggestionDistanceLimit,
}) {
addCommand(HandleCompletionRequestCommand<T>());
addCommand(InstallCompletionFilesCommand<T>());
addCommand(UnistallCompletionFilesCommand<T>());
Expand Down
1 change: 1 addition & 0 deletions lib/src/installer/shell_completion_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ typedef SourceStringTemplate = String Function(String scriptPath);
/// See:
/// - [ShellCompletionConfiguration.fromSystemShell] to retrieve the
/// configuration for a [SystemShell].
/// {@endtemplate}
@immutable
class ShellCompletionConfiguration {
/// {@macro shell_completion_configuration}
Expand Down

0 comments on commit 660c143

Please sign in to comment.