Skip to content
Draft
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 lib/src/commands/create/commands/docs_site.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:very_good_cli/src/commands/create/templates/templates.dart';
/// {@template very_good_create_docs_site}
/// A [CreateSubCommand] for creating Dart command line interfaces.
/// {@endtemplate}
class CreateDocsSite extends CreateSubCommand {
class CreateDocsSite extends CreateSubCommand with Publishable {
/// {@macro very_good_create_docs_site}
CreateDocsSite({
required super.logger,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/commands/create/commands/flame_game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:very_good_cli/src/commands/create/templates/templates.dart';
/// {@template very_good_create_flame_game_command}
/// A [CreateSubCommand] for creating Flame games.
/// {@endtemplate}
class CreateFlameGame extends CreateSubCommand with OrgName {
class CreateFlameGame extends CreateSubCommand with OrgName, Publishable {
/// {@macro very_good_create_flame_game_command}
CreateFlameGame({
required super.logger,
Expand Down
3 changes: 2 additions & 1 deletion lib/src/commands/create/commands/flutter_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import 'package:very_good_cli/src/commands/create/templates/templates.dart';
/// {@template very_good_create_flutter_app_command}
/// A [CreateSubCommand] for creating Flutter apps.
/// {@endtemplate}
class CreateFlutterApp extends CreateSubCommand with OrgName, MultiTemplates {
class CreateFlutterApp extends CreateSubCommand
with OrgName, MultiTemplates, Publishable {
/// {@macro very_good_create_flutter_app_command}
CreateFlutterApp({
required super.logger,
Expand Down
3 changes: 3 additions & 0 deletions test/src/commands/create/commands/docs_site_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Usage: very_good create docs_site <project-name> [arguments]
-o, --output-directory The desired output directory when creating a new project.
--description The description for this new project.
(defaults to "A Very Good Project created by Very Good CLI.")
--publishable Whether the generated project is intended to be published.
--org-name The organization for this new project.
(defaults to "my-org")

Expand Down Expand Up @@ -189,6 +190,7 @@ void main() {
vars: <String, dynamic>{
'project_name': 'my_docs_site',
'description': '',
'publishable': false,
'org_name': 'VeryGoodOpenSource',
},
onVarsChanged: any(named: 'onVarsChanged'),
Expand All @@ -200,6 +202,7 @@ void main() {
vars: <String, dynamic>{
'project_name': 'my_docs_site',
'description': '',
'publishable': false,
'org_name': 'VeryGoodOpenSource',
},
logger: logger,
Expand Down
3 changes: 3 additions & 0 deletions test/src/commands/create/commands/flame_game_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ final expectedUsage = [
' (defaults to "A Very Good Project created by Very Good CLI.")\n'
' --org-name The organization for this new project.\n'
' (defaults to "com.example.verygoodcore")\n'
' --publishable Whether the generated project is intended to be published.\n'
' --platforms The platforms supported by the game. By default, all platforms are enabled. Example: --platforms=android,ios\n'
'\n'
' [android] (default) The game supports the Android platform.\n'
Expand Down Expand Up @@ -202,6 +203,7 @@ void main() {
'project_name': 'my_app',
'description': '',
'org_name': 'com.example.verygoodcore',
'publishable': false,
'platforms': ['android', 'ios', 'web', 'macos', 'windows'],
},
onVarsChanged: any(named: 'onVarsChanged'),
Expand All @@ -214,6 +216,7 @@ void main() {
'project_name': 'my_app',
'description': '',
'org_name': 'com.example.verygoodcore',
'publishable': false,
'platforms': ['android', 'ios', 'web', 'macos', 'windows'],
},
logger: logger,
Expand Down
3 changes: 3 additions & 0 deletions test/src/commands/create/commands/flutter_app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Usage: very_good create flutter_app <project-name> [arguments]

--org-name The organization for this new project.
(defaults to "com.example.verygoodcore")
--publishable Whether the generated project is intended to be published.
--application-id The bundle identifier on iOS or application id on Android. (defaults to <org-name>.<project-name>)

Run "very_good help" to see global options.''',
Expand Down Expand Up @@ -174,6 +175,7 @@ void main() {
'project_name': 'my_app',
'description': '',
'org_name': 'com.example.verygoodcore',
'publishable': false,
'application_id': 'xyz.app.my_app',
},
expectedLogSummary: 'Created a Very Good App! 🦄',
Expand All @@ -200,6 +202,7 @@ void main() {
'project_name': 'my_app',
'description': '',
'org_name': 'com.example.verygoodcore',
'publishable': false,
'application_id': 'xyz.app.my_app',
},
expectedLogSummary: 'Created a Very Good App! 🦄',
Expand Down
Loading