diff --git a/example/test/integration/completion_integration_test.dart b/example/test/integration/completion_integration_test.dart index f4e242d..cf57796 100644 --- a/example/test/integration/completion_integration_test.dart +++ b/example/test/integration/completion_integration_test.dart @@ -203,7 +203,7 @@ void main() { '--no-flag': null, '--inverseflag': 'A flag that the default value is true', '--no-inverseflag': 'A flag that the default value is true', - '--trueflag': 'A flag that cannot be negated' + '--trueflag': 'A flag that cannot be negated', }; final allAbbreviationsInThisLevel = { @@ -213,7 +213,7 @@ void main() { '-n': 'An continuous option that can be passed multiple times', '-f': null, '-i': 'A flag that the default value is true', - '-t': 'A flag that cannot be negated' + '-t': 'A flag that cannot be negated', }; group('empty ', () { @@ -315,7 +315,7 @@ void main() { 'An option that starts with "no" just to make confusion with ' 'negated flags', '--no-flag': null, - '--no-inverseflag': 'A flag that the default value is true' + '--no-inverseflag': 'A flag that the default value is true', }), ); }); @@ -325,7 +325,7 @@ void main() { 'example_cli some_command --no-i', suggests({ '--no-itIsAFlag': null, - '--no-inverseflag': 'A flag that the default value is true' + '--no-inverseflag': 'A flag that the default value is true', }), ); }); @@ -642,7 +642,7 @@ void main() { 'fii': 'fii help', 'bar': 'bar help', 'fee': 'fee help', - 'i have space': 'an allowed option with space on it' + 'i have space': 'an allowed option with space on it', }), ); }); diff --git a/lib/src/parser/completion_result.dart b/lib/src/parser/completion_result.dart index eafe3f5..723beda 100644 --- a/lib/src/parser/completion_result.dart +++ b/lib/src/parser/completion_result.dart @@ -248,7 +248,7 @@ class OptionValuesCompletionResult extends CompletionResult { if (includeAbbrName) '-$optionName$allowed': option?.allowedHelp?[allowed] else - allowed: option?.allowedHelp?[allowed] + allowed: option?.allowedHelp?[allowed], }; } } diff --git a/test/src/command_runner/commands/handle_completion_command_test.dart b/test/src/command_runner/commands/handle_completion_command_test.dart index 4961d5c..77b6d87 100644 --- a/test/src/command_runner/commands/handle_completion_command_test.dart +++ b/test/src/command_runner/commands/handle_completion_command_test.dart @@ -78,7 +78,7 @@ void main() { 'SHELL': '/foo/bar/zsh', 'COMP_LINE': line, 'COMP_POINT': '${line.length}', - 'COMP_CWORD': '2' + 'COMP_CWORD': '2', }; await commandRunner.run(['completion']); @@ -99,7 +99,7 @@ subcommand:level 1 'SHELL': '/foo/bar/zsh', 'COMP_LINE': line, 'COMP_POINT': '${line.length}', - 'COMP_CWORD': '2' + 'COMP_CWORD': '2', }; await commandRunner.run(['completion']); diff --git a/test/src/parser/completion_result_test.dart b/test/src/parser/completion_result_test.dart index ef6e20d..7e0012d 100644 --- a/test/src/parser/completion_result_test.dart +++ b/test/src/parser/completion_result_test.dart @@ -139,7 +139,7 @@ void main() { { 'command1': 'yay command 1', 'command2': 'yay command 2', - 'command_not_weird': 'yay weird command' + 'command_not_weird': 'yay weird command', }, ); }, diff --git a/test/src/parser/completion_state_test.dart b/test/src/parser/completion_state_test.dart index a407ccb..bf5270c 100644 --- a/test/src/parser/completion_state_test.dart +++ b/test/src/parser/completion_state_test.dart @@ -8,7 +8,7 @@ void main() { final environment = { 'COMP_LINE': 'example_cli some_command --discrete foo', 'COMP_POINT': '39', - 'COMP_CWORD': '3' + 'COMP_CWORD': '3', }; final state = CompletionState.fromEnvironment(environment); expect(state, isNotNull); @@ -26,7 +26,7 @@ void main() { final environment = { 'COMP_LINE': 'example_cli some_command --discrete foo', 'COMP_POINT': '39', - 'COMP_CWORD': '3' + 'COMP_CWORD': '3', }; final state = CompletionState.fromEnvironment(environment); final state2 = CompletionState.fromEnvironment(environment); @@ -47,7 +47,7 @@ void main() { test('returns null when only COMP_LINE is set', () { final environment = { - 'COMP_LINE': 'example_cli some_command --discrete foo' + 'COMP_LINE': 'example_cli some_command --discrete foo', }; expect( CompletionState.fromEnvironment(environment), @@ -86,7 +86,7 @@ void main() { final environment = { 'COMP_LINE': 'example_cli some_command --discrete foo', 'COMP_POINT': '0', - 'COMP_CWORD': '0' + 'COMP_CWORD': '0', }; expect( CompletionState.fromEnvironment(environment), @@ -98,7 +98,7 @@ void main() { final environment = { 'COMP_LINE': 'example_cli some_command -- --discrete foo', 'COMP_POINT': '42', - 'COMP_CWORD': '4' + 'COMP_CWORD': '4', }; expect( CompletionState.fromEnvironment(environment),