mirror of
https://github.com/flutter/agent-plugins.git
synced 2026-09-14 16:19:33 +08:00
20 lines
595 B
Dart
20 lines
595 B
Dart
// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
String buildFrontmatter({
|
|
String name = 'Skill-Name',
|
|
String description = 'A test skill',
|
|
String? compatibility,
|
|
}) {
|
|
final sb = StringBuffer();
|
|
sb.writeln('---');
|
|
sb.writeln('name: $name');
|
|
sb.writeln('description: $description');
|
|
if (compatibility != null) {
|
|
sb.writeln('compatibility: $compatibility');
|
|
}
|
|
sb.writeln('---');
|
|
return sb.toString();
|
|
}
|