Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bump_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: dart-lang/setup-dart@v1
with:
sdk: "3.11.0"
sdk: "3.12.0"

- name: Install mason
run: dart pub global activate mason_cli
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.41.x"
flutter-version: "3.44.x"

- name: Install LCOV
run: sudo apt-get install -y lcov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pub_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: "3.11.0"
sdk: "3.12.0"
- name: 📦 Install Dependencies
run: dart pub get
- name: 📢 Publish
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/spdx_license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: "3.11.0"
sdk: "3.12.0"

- name: 📦 Install Dependencies
run: dart pub get
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: "3.11.0"
sdk: "3.12.0"

- name: 📦 Install Dependencies
run: dart pub get
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spdx_license_bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: "3.41.x"
flutter-version: "3.44.x"

- name: 📦 Install Dependencies
run: dart pub get
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_optimizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
build_hooks:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: "3.11.0"
dart_sdk: "3.12.0"
working_directory: bricks/test_optimizer/hooks

verify_bundle:
Expand All @@ -34,7 +34,7 @@ jobs:

- uses: dart-lang/setup-dart@v1
with:
sdk: "3.11.0"
sdk: "3.12.0"

- name: Install mason
run: dart pub global activate mason_cli
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/very_good_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- uses: subosito/flutter-action@v2.8.0
with:
flutter-version: "3.41.x"
flutter-version: "3.44.x"

- name: Install Dependencies
run: flutter pub get
Expand Down
2 changes: 1 addition & 1 deletion bricks/test_optimizer/hooks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hooks
publish_to: none

environment:
sdk: ^3.11.0
sdk: ^3.12.0

dependencies:
mason: ^0.1.0
Expand Down
2 changes: 1 addition & 1 deletion e2e/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ^3.11.0
sdk: ^3.12.0

dev_dependencies:
mason: ^0.1.0
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/commands/test/async_main/fixture/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ^3.11.0
sdk: ^3.12.0

dev_dependencies:
test: ^1.24.3
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ^3.11.0
sdk: ^3.12.0

dev_dependencies:
test: ^1.24.3
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Fixture for testing golden files with spaced file names.
publish_to: none

environment:
sdk: ^3.11.0
sdk: ^3.12.0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/cli/templates/test_optimizer_bundle.dart

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

3 changes: 1 addition & 2 deletions lib/src/cli/test_cli_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ enum CoverageCollectionMode {
imports,

/// Collect coverage from all files in the project.
all
;
all;

/// Parses a string value into a [CoverageCollectionMode].
static CoverageCollectionMode fromString(String value) {
Expand Down
5 changes: 2 additions & 3 deletions lib/src/commands/dart/commands/dart_test_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@ typedef DartTestCommandCall =
class DartTestCommand extends Command<int> {
/// {@macro packages_command}
DartTestCommand({
required Logger logger,
required this._logger,
DartTestCommandCall? dartTest,
DartInstalledCommand? dartInstalled,
}) : _logger = logger,
_dartTest = dartTest ?? Dart.test,
}) : _dartTest = dartTest ?? Dart.test,
_dartInstalled = dartInstalled ?? Dart.installed {
argParser
..addFlag(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,7 @@ enum ReporterOutputFormat {
/// List all licenses in a CSV format.
///
/// Example: very_good_cli,MIT
csv
;
csv;

/// Convenience parsing method from user input.
///
Expand Down
9 changes: 4 additions & 5 deletions lib/src/commands/test/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,11 @@ typedef FlutterTestCommand =
class TestCommand extends Command<int> {
/// {@macro test_command}
TestCommand({
required Logger logger,
@visibleForTesting FlutterInstalledCommand? flutterInstalled,
required this._logger,
@visibleForTesting FlutterTestCommand? flutterTest,
}) : _logger = logger,
_flutterInstalled = flutterInstalled ?? Flutter.installed,
_flutterTest = flutterTest ?? Flutter.test {
@visibleForTesting FlutterInstalledCommand? flutterInstalled,
}) : _flutterTest = flutterTest ?? Flutter.test,
_flutterInstalled = flutterInstalled ?? Flutter.installed {
argParser
..addFlag(
'coverage',
Expand Down
7 changes: 4 additions & 3 deletions lib/src/commands/update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import 'package:very_good_cli/src/version.dart';
/// {@endtemplate}
class UpdateCommand extends Command<int> {
/// {@macro update_command}
UpdateCommand({required Logger logger, PubUpdater? pubUpdater})
: _logger = logger,
_pubUpdater = pubUpdater ?? PubUpdater();
UpdateCommand({
required this._logger,
PubUpdater? pubUpdater,
}) : _pubUpdater = pubUpdater ?? PubUpdater();

final Logger _logger;
final PubUpdater _pubUpdater;
Expand Down
3 changes: 1 addition & 2 deletions lib/src/pubspec_lock/pubspec_lock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ enum PubspecLockPackageDependencyType {
/// See also:
///
/// * [Dart's dependency override documentation](https://dart.dev/tools/pub/dependencies#dependency-overrides)
directOverridden._('direct overridden')
;
directOverridden._('direct overridden');

const PubspecLockPackageDependencyType._(this.value);

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ documentation: https://cli.vgv.dev/docs/overview
topics: [cli, codegen, test, template, boilerplate]

environment:
sdk: ^3.11.0
sdk: ^3.12.0

dependencies:
args: ^2.6.0
Expand Down
2 changes: 1 addition & 1 deletion site/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Very Good CLI is a Command-Line Interface that enables you to generate VGV-opini
In order to use Very Good CLI you must have [Dart][dart_sdk] and [Flutter][flutter_sdk] installed on your machine.

:::info
Very Good CLI requires Dart `">=3.11.0 <4.0.0"`
Very Good CLI requires Dart `">=3.12.0 <4.0.0"`
:::

## Installing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Run "very_good help" to see global options.''',
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/commands/create/commands/dart_cli_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Run "very_good help" to see global options.''',
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/commands/create/commands/dart_package_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Run "very_good help" to see global options.''',
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/commands/create/commands/docs_site_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Run "very_good help" to see global options.''',
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/commands/create/commands/flame_game_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final expectedUsage = [
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/commands/create/commands/flutter_app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Run "very_good help" to see global options.''',
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Run "very_good help" to see global options.''',
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ final expectedUsage = [
const pubspec = '''
name: example
environment:
sdk: ^3.11.0
sdk: ^3.12.0
''';

void main() {
Expand Down
Loading
Loading