From e03f06e5e941584b06c138ea38aae074b1407a8d Mon Sep 17 00:00:00 2001 From: Chen Peng Date: Tue, 21 May 2024 10:55:10 +0800 Subject: [PATCH] [you_cli] yaml.dart rename to pubspec.dart --- packages/you_cli/lib/src/cli_core.dart | 2 +- packages/you_cli/lib/src/{yaml.dart => pubspec.dart} | 2 +- packages/you_cli/test/src/pubspec_edit_test.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename packages/you_cli/lib/src/{yaml.dart => pubspec.dart} (98%) diff --git a/packages/you_cli/lib/src/cli_core.dart b/packages/you_cli/lib/src/cli_core.dart index fe99dae8..b06983e5 100644 --- a/packages/you_cli/lib/src/cli_core.dart +++ b/packages/you_cli/lib/src/cli_core.dart @@ -8,7 +8,7 @@ import 'package:code_builder/code_builder.dart'; import 'package:file/file.dart'; import 'package:path/path.dart' as path; import 'package:you_cli/src/analyzer.dart'; -import 'package:you_cli/src/yaml.dart'; +import 'package:you_cli/src/pubspec.dart'; // final Glob _PAGE_GLOB = Glob("{**/page.dart,page.dart}"); class YouCli { diff --git a/packages/you_cli/lib/src/yaml.dart b/packages/you_cli/lib/src/pubspec.dart similarity index 98% rename from packages/you_cli/lib/src/yaml.dart rename to packages/you_cli/lib/src/pubspec.dart index df74f634..7eca60f7 100644 --- a/packages/you_cli/lib/src/yaml.dart +++ b/packages/you_cli/lib/src/pubspec.dart @@ -20,7 +20,7 @@ class Pubspec { static Pubspec parseString(String content) { YamlMap document = loadYaml(content); - return Pubspec._(document); + return Pubspec._(document); } String get name => document["name"] as String; diff --git a/packages/you_cli/test/src/pubspec_edit_test.dart b/packages/you_cli/test/src/pubspec_edit_test.dart index 79a1fca0..8e494291 100644 --- a/packages/you_cli/test/src/pubspec_edit_test.dart +++ b/packages/you_cli/test/src/pubspec_edit_test.dart @@ -1,7 +1,7 @@ import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:test/test.dart'; -import 'package:you_cli/src/yaml.dart'; +import 'package:you_cli/src/pubspec.dart'; void main() {