Skip to content

Commit 4625926

Browse files
vgvbotalestiagomarcossevilla
authored
chore: update SPDX licenses (#1423)
* chore: update SPDX licenses * chore: update SPDX licenses * chore: update SPDX licenses --------- Co-authored-by: alestiago <44524995+alestiago@users.noreply.github.com> Co-authored-by: Marcos Sevilla <marcossevilla14@gmail.com> Co-authored-by: Marcos Sevilla <31174242+marcossevilla@users.noreply.github.com>
1 parent 673e1d9 commit 4625926

File tree

3 files changed

+23
-37
lines changed

3 files changed

+23
-37
lines changed

lib/src/mcp/mcp_command.dart

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,37 +57,28 @@ Start the MCP (Model Context Protocol) server. WARNING: This is an experimental
5757
try {
5858
_logger
5959
..info('Starting Very Good CLI MCP Server...')
60-
..info(
61-
'Server will listen on stdin/stdout for MCP protocol messages',
62-
);
60+
..info('Server will listen on stdin/stdout for MCP protocol messages');
6361

6462
// Create a channel from stdin/stdout using the stdio helper
6563
final channel = _channelFactory();
6664

6765
// Create and start the MCP server
68-
final server = _serverFactory(
69-
channel: channel,
70-
logger: _logger,
71-
);
66+
final server = _serverFactory(channel: channel, logger: _logger);
7267

7368
_logger
7469
..info('MCP Server started successfully')
7570
..info('Available tools:')
7671
..info('''
7772
- create: Create a very good Dart or Flutter project in seconds based on the provided template. Each template has a corresponding sub-command.''')
7873
..info(' - test: Run tests in a Dart or Flutter project.')
79-
..info(
80-
'''
74+
..info('''
8175
- packages_get: Install or update Dart/Flutter package dependencies.
8276
Use after creating a project or modifying pubspec.yaml.
83-
Supports recursive installation and package exclusion.''',
84-
)
85-
..info(
86-
'''
77+
Supports recursive installation and package exclusion.''')
78+
..info('''
8779
- packages_check_licenses: Verify package licenses for compliance and validation in a Dart or Flutter project.
8880
Identifies license types (MIT, BSD, Apache, etc.) for all
89-
dependencies. Use to ensure license compatibility.''',
90-
);
81+
dependencies. Use to ensure license compatibility.''');
9182

9283
// Wait for the server to complete
9384
// (this will block until the connection is closed)

lib/src/mcp/mcp_server.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,7 @@ Only one value can be selected.
286286
cliArgs.addAll(['--org-name', args['org_name']! as String]);
287287
}
288288
if (args['output_directory'] != null) {
289-
cliArgs.addAll([
290-
'-o',
291-
args['output_directory']! as String,
292-
]);
289+
cliArgs.addAll(['-o', args['output_directory']! as String]);
293290
}
294291
if (args['application_id'] != null) {
295292
cliArgs.addAll(['--application-id', args['application_id']! as String]);
@@ -308,10 +305,7 @@ Only one value can be selected.
308305
}
309306

310307
List<String> _parseTest(Map<String, Object?> args) {
311-
final cliArgs = <String>[
312-
if (args['dart'] == true) 'dart',
313-
'test',
314-
];
308+
final cliArgs = <String>[if (args['dart'] == true) 'dart', 'test'];
315309

316310
if (args['directory'] != null) {
317311
cliArgs.add(args['directory']! as String);

lib/src/pub_license/spdx_license.gen.dart

Lines changed: 15 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)