Repository: VeryGoodOpenSource/very_good_cli
Pull request #862 (2023-10-19 12:23:55)

feat: show `check licenses` command
<!--
  Thanks for contributing!

  Provide a description of your changes below and a general summary in the title

  Please look at the following checklist to ensure that your PR can be accepted quickly:
-->

## Description

Shows `check licenses` command.

## Type of Change

<!--- Put an `x` in all the boxes that apply: -->

- [X] ✨ New feature (non-breaking change which adds functionality)
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
- [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
- [ ] 🧹 Code refactor
- [ ] ✅ Build configuration change
- [ ] 📝 Documentation
- [ ] 🗑️ Chore



Patch:
diff --git a/lib/src/commands/packages/commands/check/check.dart b/lib/src/commands/packages/commands/check/check.dart
index 31700cb..9f9b1f8 100644
--- a/lib/src/commands/packages/commands/check/check.dart
+++ b/lib/src/commands/packages/commands/check/check.dart
@@ -23,7 +23,4 @@ class PackagesCheckCommand extends Command<int> {
 
   @override
   String get name => 'check';
-
-  @override
-  bool get hidden => true;
 }
diff --git a/lib/src/commands/packages/commands/check/commands/licenses.dart b/lib/src/commands/packages/commands/check/commands/licenses.dart
index 10c53bc..ef2289d 100644
--- a/lib/src/commands/packages/commands/check/commands/licenses.dart
+++ b/lib/src/commands/packages/commands/check/commands/licenses.dart
@@ -89,9 +89,6 @@ class PackagesCheckLicensesCommand extends Command<int> {
   @override
   String get name => 'licenses';
 
-  @override
-  bool get hidden => true;
-
   ArgResults get _argResults => argResults!;
 
   @override


Test patch:
diff --git a/test/src/commands/packages/commands/check/check_test.dart b/test/src/commands/packages/commands/check/check_test.dart
index ea64392..344640c 100644
--- a/test/src/commands/packages/commands/check/check_test.dart
+++ b/test/src/commands/packages/commands/check/check_test.dart
@@ -43,9 +43,9 @@ void main() {
       }),
     );
 
-    test('is hidden', () {
+    test('is not hidden', () {
       final command = PackagesCheckCommand();
-      expect(command.hidden, isTrue);
+      expect(command.hidden, isFalse);
     });
   });
 }
diff --git a/test/src/commands/packages/commands/check/commands/licenses_test.dart b/test/src/commands/packages/commands/check/commands/licenses_test.dart
index f9927cb..4cafcb4 100644
--- a/test/src/commands/packages/commands/check/commands/licenses_test.dart
+++ b/test/src/commands/packages/commands/check/commands/licenses_test.dart
@@ -64,9 +64,9 @@ void main() {
       }),
     );
 
-    test('is hidden', () {
+    test('is not hidden', () {
       final command = PackagesCheckLicensesCommand();
-      expect(command.hidden, isTrue);
+      expect(command.hidden, isFalse);
     });
 
     group('throws usage exception', () {
diff --git a/test/src/commands/packages/packages_test.dart b/test/src/commands/packages/packages_test.dart
index 5db3076..7a83121 100644
--- a/test/src/commands/packages/packages_test.dart
+++ b/test/src/commands/packages/packages_test.dart
@@ -11,7 +11,8 @@ const _expectedPackagesUsage = [
       '-h, --help    Print this usage information.\n'
       '\n'
       'Available subcommands:\n'
-      '  get   Get packages in a Dart or Flutter project.\n'
+      '  check   Perform checks in a Dart or Flutter project.\n'
+      '  get     Get packages in a Dart or Flutter project.\n'
       '\n'
       'Run "very_good help" to see global options.'
 ];