Apply dart fixes
This commit is contained in:
parent
7e804625a6
commit
a9b71780fb
2 changed files with 9 additions and 7 deletions
|
@ -21,7 +21,7 @@ Future<int> main(List<String> args) async {
|
||||||
|
|
||||||
Arguments parsed = await CLIHelper.parseArgs(args, Arguments());
|
Arguments parsed = await CLIHelper.parseArgs(args, Arguments());
|
||||||
if (parsed.hasArg("help") || !parsed.hasArg("value")) {
|
if (parsed.hasArg("help") || !parsed.hasArg("value")) {
|
||||||
print("${HEADER}${helpText}");
|
print("$HEADER$helpText");
|
||||||
exit(0);
|
exit(0);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -48,10 +48,11 @@ Future<int> main(List<String> args) async {
|
||||||
print(helpTest);
|
print(helpTest);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
if (parsed.hasArg("out"))
|
if (parsed.hasArg("out")) {
|
||||||
verbose = true;
|
verbose = true;
|
||||||
else
|
} else {
|
||||||
verbose = false;
|
verbose = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print(HEADER);
|
print(HEADER);
|
||||||
|
|
||||||
|
@ -67,12 +68,13 @@ Future<int> main(List<String> args) async {
|
||||||
if (verbose) await prnt("\r> Generating report...");
|
if (verbose) await prnt("\r> Generating report...");
|
||||||
|
|
||||||
String report = "";
|
String report = "";
|
||||||
if (!parsed.hasArg("nohtml"))
|
if (!parsed.hasArg("nohtml")) {
|
||||||
report = await generateHTMLReport(FIC,
|
report = await generateHTMLReport(FIC,
|
||||||
ascending: ascending, VERSION: MKFSREPORT_VER);
|
ascending: ascending, VERSION: MKFSREPORT_VER);
|
||||||
else
|
} else {
|
||||||
report = await generateTextReport(FIC,
|
report = await generateTextReport(FIC,
|
||||||
ascending: ascending, VERSION: MKFSREPORT_VER);
|
ascending: ascending, VERSION: MKFSREPORT_VER);
|
||||||
|
}
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
StringArgument outputPath = parsed.getArg("out") as StringArgument;
|
StringArgument outputPath = parsed.getArg("out") as StringArgument;
|
||||||
|
@ -98,7 +100,7 @@ Future<String> generateHTMLReport(FileInformationCache FIC,
|
||||||
<title>MKFSReport</title>
|
<title>MKFSReport</title>
|
||||||
<body style="background-color: black;color: #00D2FA">
|
<body style="background-color: black;color: #00D2FA">
|
||||||
<h2>File System Report</h2><br/>
|
<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/>
|
<b>Bundled <a href="https://git.zontreck.com/AriasCreations/LibAC-dart">LibAC</a> Version: ${HelperConsts.LIBAC_VERSION}</b><br/>
|
||||||
<pre style="color: #7a0c17">
|
<pre style="color: #7a0c17">
|
||||||
MKFSREPORT and LibAC are provided free of charge with no implied warranties. The software is provided as-is.
|
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 = '''
|
String header = '''
|
||||||
MKFSReport
|
MKFSReport
|
||||||
{File System Report}
|
{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]
|
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.
|
MKFSREPORT and LibAC are provided free of charge with no implied warranties. The software is provided as-is.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue