Apply dart fixes

This commit is contained in:
zontreck 2024-08-30 23:34:20 -07:00
parent 7e804625a6
commit a9b71780fb
2 changed files with 9 additions and 7 deletions

View file

@ -21,7 +21,7 @@ Future<int> main(List<String> args) async {
Arguments parsed = await CLIHelper.parseArgs(args, Arguments());
if (parsed.hasArg("help") || !parsed.hasArg("value")) {
print("${HEADER}${helpText}");
print("$HEADER$helpText");
exit(0);
return 0;
} else {

View file

@ -48,10 +48,11 @@ Future<int> main(List<String> args) async {
print(helpTest);
return 0;
} else {
if (parsed.hasArg("out"))
if (parsed.hasArg("out")) {
verbose = true;
else
} else {
verbose = false;
}
}
print(HEADER);
@ -67,12 +68,13 @@ Future<int> main(List<String> args) async {
if (verbose) await prnt("\r> Generating report...");
String report = "";
if (!parsed.hasArg("nohtml"))
if (!parsed.hasArg("nohtml")) {
report = await generateHTMLReport(FIC,
ascending: ascending, VERSION: MKFSREPORT_VER);
else
} else {
report = await generateTextReport(FIC,
ascending: ascending, VERSION: MKFSREPORT_VER);
}
if (verbose) {
StringArgument outputPath = parsed.getArg("out") as StringArgument;
@ -98,7 +100,7 @@ Future<String> generateHTMLReport(FileInformationCache FIC,
<title>MKFSReport</title>
<body style="background-color: black;color: #00D2FA">
<h2>File System Report</h2><br/>
<b>Generated by mkfsreport v${VERSION}</b><br/>
<b>Generated by mkfsreport v$VERSION</b><br/>
<b>Bundled <a href="https://git.zontreck.com/AriasCreations/LibAC-dart">LibAC</a> Version: ${HelperConsts.LIBAC_VERSION}</b><br/>
<pre style="color: #7a0c17">
MKFSREPORT and LibAC are provided free of charge with no implied warranties. The software is provided as-is.
@ -145,7 +147,7 @@ Future<String> generateTextReport(FileInformationCache FIC,
String header = '''
MKFSReport
{File System Report}
Generated by mkfsreport v${VERSION}
Generated by mkfsreport v$VERSION
Bundled LibAC Version: ${HelperConsts.LIBAC_VERSION} [https://git.zontreck.com/AriasCreations/LibAC-dart]
MKFSREPORT and LibAC are provided free of charge with no implied warranties. The software is provided as-is.