mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-10 17:07:30 +00:00
Remove logger statements from /bin dir
This commit is contained in:
parent
19262758a9
commit
a8df7f73c3
@ -6,11 +6,8 @@ import 'package:http/http.dart';
|
||||
import 'package:html/parser.dart';
|
||||
import 'package:pub_api_client/pub_api_client.dart';
|
||||
import 'package:pubspec_parse/pubspec_parse.dart';
|
||||
import 'package:spotube/models/logger.dart';
|
||||
|
||||
void main() async {
|
||||
final logger = getLogger("");
|
||||
|
||||
final client = PubClient();
|
||||
|
||||
final pubspec = Pubspec.parse(File('pubspec.yaml').readAsStringSync());
|
||||
@ -71,7 +68,8 @@ void main() async {
|
||||
),
|
||||
);
|
||||
|
||||
logger.d(
|
||||
// ignore: avoid_print
|
||||
print(
|
||||
packageInfo
|
||||
.map(
|
||||
(package) =>
|
||||
@ -79,7 +77,8 @@ void main() async {
|
||||
)
|
||||
.join('\n'),
|
||||
);
|
||||
logger.d(
|
||||
// ignore: avoid_print
|
||||
print(
|
||||
gitPubspecs.map(
|
||||
(package) {
|
||||
final packageUrl = package.homepage ??
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:spotube/models/logger.dart';
|
||||
|
||||
/// Generate JSON output for untranslated messages with English values
|
||||
/// for quick translation in ChatGPT
|
||||
@ -14,8 +13,6 @@ import 'package:spotube/models/logger.dart';
|
||||
/// Example: dart bin/untranslated_messages.dart bn
|
||||
|
||||
void main(List<String> args) {
|
||||
final logger = getLogger("");
|
||||
|
||||
final file = jsonDecode(
|
||||
File('untranslated_messages.json').readAsStringSync(),
|
||||
) as Map<String, dynamic>;
|
||||
@ -38,7 +35,8 @@ void main(List<String> args) {
|
||||
);
|
||||
}
|
||||
|
||||
logger.d(
|
||||
// ignore: avoid_print
|
||||
print(
|
||||
const JsonEncoder.withIndent(' ').convert(
|
||||
args.isNotEmpty ? messagesWithValues[args.first] : messagesWithValues,
|
||||
),
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:spotube/models/logger.dart';
|
||||
|
||||
void main() {
|
||||
final logger = getLogger("");
|
||||
Process.run("sh", ["-c", '"./scripts/pkgbuild2json.sh aur-struct/PKGBUILD"'])
|
||||
.then((result) {
|
||||
try {
|
||||
@ -18,7 +16,7 @@ void main() {
|
||||
}
|
||||
} catch (e) {
|
||||
// ignore: avoid_print
|
||||
logger.e("[Failed to parse PKGBUILD] $e");
|
||||
print("[Failed to parse PKGBUILD] $e");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user