-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ Edit ] Added info debug command for seeing the variables while deve…
…loping, it should not be shown in the production version.
- Loading branch information
Showing
9 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,6 @@ coverage/ | |
.test_runner.dart | ||
|
||
# Android studio and IntelliJ | ||
.idea | ||
.idea | ||
|
||
bin/langsync.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 0.8.1 | ||
|
||
changed the account creation command from `apiKey` to `create` for more consistency. | ||
- Changed the account creation command from `apiKey` to `create` for more consistency. | ||
|
||
# 0.8.2 | ||
|
||
- Added info debug command for seeing the variables while developing, it should not be shown in the production version. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// ignore_for_file: public_member_api_docs, sort_constructors_first | ||
import 'dart:async'; | ||
|
||
import 'package:args/command_runner.dart'; | ||
import 'package:langsync/src/etc/utils.dart'; | ||
import 'package:langsync/src/version.dart'; | ||
import 'package:mason_logger/mason_logger.dart'; | ||
|
||
class DebugInfoCommand extends Command<int> { | ||
final Logger logger; | ||
|
||
DebugInfoCommand({required this.logger}); | ||
|
||
@override | ||
String get description => | ||
'show some useful info while debugging, this command is made for devlopemnet and it should not appear on production version'; | ||
|
||
@override | ||
String get name => 'debug'; | ||
|
||
@override | ||
Future<int> run() async { | ||
final debugFields = { | ||
'baseUrl': utils.baseUrl, | ||
'langsyncVersion': packageVersion, | ||
}; | ||
|
||
final asEntriesList = debugFields.entries.toList(); | ||
|
||
for (int index = 0; index < debugFields.length; index++) { | ||
final current = asEntriesList[index]; | ||
|
||
logger.info('${current.key}: ${current.value}'); | ||
} | ||
|
||
logger.success('all debug info printed successfully!'); | ||
|
||
return ExitCode.success.code; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters