Skip to content

Commit 8ad6de6

Browse files
committed
Changed text prefix for better reading
1 parent e1d415f commit 8ad6de6

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

Program.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -244,25 +244,25 @@ static void EnableProxy()
244244
{
245245
foreach(var file in settings.Files)
246246
{
247-
WriteColor(@$"[//--Enable Proxy for {file.Path}]", ConsoleColor.DarkGreen);
248-
WriteColor($"[// EnableProxy:] Check file {file.Path} for old entrys", ConsoleColor.DarkGreen);
247+
WriteColor(@$"[// ### Enable Proxy for {file.Path}]", ConsoleColor.DarkGreen);
248+
WriteColor($"[// #] Check file {file.Path} for old entrys", ConsoleColor.DarkGreen);
249249
if (!RemoveProxyFromFile(file))
250250
{
251-
WriteColor($"[// EnableProxy:] Check file {file.Path} failed", ConsoleColor.DarkRed);
251+
WriteColor($"[// # Error:] Check file {file.Path} failed", ConsoleColor.DarkRed);
252252
return;
253253
}
254254

255-
WriteColor($"[// EnableProxy:] Setup file {file.Path}", ConsoleColor.DarkGreen);
255+
WriteColor($"[// #] Setup file {file.Path}", ConsoleColor.DarkGreen);
256256
if (!File.Exists(file.Path))
257257
{
258-
WriteColor($"[// Error:] File path {file.Path} could not be found", ConsoleColor.DarkRed);
258+
WriteColor($"[// # Error:] File path {file.Path} could not be found", ConsoleColor.DarkRed);
259259
return;
260260
}
261261

262262
File.AppendAllLines(file.Path, new[] { settings.UniquePrefixLine });
263263
File.AppendAllLines(file.Path, file.Proxy);
264264
File.AppendAllLines(file.Path, new[] { settings.UniqueSuffixLine });
265-
WriteColor(@$"[//--Done.]", ConsoleColor.DarkGreen);
265+
WriteColor(@$"[// ### Done.]", ConsoleColor.DarkGreen);
266266
}
267267
ConfirmProxy(true);
268268
}
@@ -274,9 +274,9 @@ static void DisableProxy()
274274
{
275275
foreach (var file in settings.Files)
276276
{
277-
WriteColor(@$"[//--Disable Proxy for {file.Path}]", ConsoleColor.DarkGreen);
277+
WriteColor(@$"[// ### Disable Proxy for {file.Path}]", ConsoleColor.DarkGreen);
278278
RemoveProxyFromFile(file);
279-
WriteColor(@$"[//--Done.]", ConsoleColor.DarkGreen);
279+
WriteColor(@$"[// ### Done.]", ConsoleColor.DarkGreen);
280280
}
281281
ConfirmProxy(false);
282282
}
@@ -288,10 +288,10 @@ static void DisableProxy()
288288
/// <returns>Success of the action</returns>
289289
static bool RemoveProxyFromFile(FileSettings file)
290290
{
291-
WriteColor($"[// DisableProxy:] Setup file {file.Path}", ConsoleColor.DarkGreen);
291+
WriteColor($"[// #] Setup file {file.Path}", ConsoleColor.DarkGreen);
292292
if (!File.Exists(file.Path))
293293
{
294-
WriteColor($"[// Error:] File path {file.Path} could not be found", ConsoleColor.DarkRed);
294+
WriteColor($"[// # Error:] File path {file.Path} could not be found", ConsoleColor.DarkRed);
295295
return false;
296296
}
297297

@@ -320,17 +320,17 @@ static bool RemoveProxyFromFile(FileSettings file)
320320
}
321321
}
322322

323-
WriteColor($"[// DisableProxy:] Override file {file.Path}", ConsoleColor.DarkGreen);
323+
WriteColor($"[// #] Override file {file.Path}", ConsoleColor.DarkGreen);
324324
var attributes = File.GetAttributes(file.Path);
325325
File.Delete(file.Path);
326326
if (File.Exists(file.Path))
327327
{
328-
WriteColor($"[// Error:] File {file.Path} could not be deleted", ConsoleColor.DarkRed);
328+
WriteColor($"[// # Error:] File {file.Path} could not be deleted", ConsoleColor.DarkRed);
329329
return false;
330330
}
331331
File.Move(tmpFile, file.Path);
332332

333-
WriteColor($"[// DisableProxy:] Set file permissions", ConsoleColor.DarkGreen);
333+
WriteColor($"[// #] Set file permissions", ConsoleColor.DarkGreen);
334334
File.SetAttributes(file.Path, attributes);
335335

336336
return true;

0 commit comments

Comments
 (0)