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