@@ -5,8 +5,9 @@ import 'package:raygun_cli/src/core/raygun_command.dart';
55import 'package:raygun_cli/src/deployments/deployments.dart' ;
66import 'package:raygun_cli/src/deployments/deployments_api.dart' ;
77
8- final DeploymentsCommand deploymentsCommand =
9- DeploymentsCommand (api: DeploymentsApi .create ());
8+ final DeploymentsCommand deploymentsCommand = DeploymentsCommand (
9+ api: DeploymentsApi .create (),
10+ );
1011
1112class DeploymentsCommand extends RaygunCommand {
1213 const DeploymentsCommand ({required this .api});
@@ -25,11 +26,7 @@ class DeploymentsCommand extends RaygunCommand {
2526 negatable: false ,
2627 help: 'Print deployments usage information' ,
2728 )
28- ..addOption (
29- 'token' ,
30- mandatory: true ,
31- help: 'Raygun access token' ,
32- )
29+ ..addOption ('token' , mandatory: true , help: 'Raygun access token' )
3330 ..addOption (
3431 'api-key' ,
3532 mandatory: true ,
@@ -63,11 +60,7 @@ class DeploymentsCommand extends RaygunCommand {
6360 mandatory: false ,
6461 help: 'Email address of the person deploying the software' ,
6562 )
66- ..addOption (
67- 'comment' ,
68- mandatory: false ,
69- help: 'Deployment comment' ,
70- );
63+ ..addOption ('comment' , mandatory: false , help: 'Deployment comment' );
7164 }
7265
7366 @override
@@ -78,19 +71,18 @@ class DeploymentsCommand extends RaygunCommand {
7871 exit (0 );
7972 }
8073
81- Deployments (
82- command: command,
83- verbose: verbose,
84- deploymentsApi: api,
85- ).notify ().then ((success) {
86- if (success) {
87- exit (0 );
88- } else {
89- exit (1 );
90- }
91- }).catchError ((error) {
92- print ('Error creating deployment: $error ' );
93- exit (2 );
94- });
74+ Deployments (command: command, verbose: verbose, deploymentsApi: api)
75+ .notify ()
76+ .then ((success) {
77+ if (success) {
78+ exit (0 );
79+ } else {
80+ exit (1 );
81+ }
82+ })
83+ .catchError ((error) {
84+ print ('Error creating deployment: $error ' );
85+ exit (2 );
86+ });
9587 }
9688}
0 commit comments