Skip to content

Commit 41ac66d

Browse files
save
1 parent 9143f25 commit 41ac66d

20 files changed

+69
-22
lines changed
8 KB
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

.vs/Storm/v17/.futdcache.v2

0 Bytes
Binary file not shown.

.vs/Storm/v17/.suo

0 Bytes
Binary file not shown.

.vs/Storm/v17/DocumentLayout.backup.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"RelativeDocumentMoniker": "Storm\\Program.cs",
3333
"ToolTip": "C:\\Users\\avirt\\Desktop\\Storm\\Storm\\Program.cs",
3434
"RelativeToolTip": "Storm\\Program.cs",
35-
"ViewState": "AgIAABAAAAAAAAAAAADwvxYAAAA2AAAAAAAAAA==",
35+
"ViewState": "AgIAAAIAAAAAAAAAAAAkwBIAAABPAAAAAAAAAA==",
3636
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
3737
"WhenOpened": "2026-01-28T14:48:05.268Z",
3838
"IsPinned": true,
@@ -49,8 +49,7 @@
4949
"ViewState": "AgIAAD8AAAAAAAAAAAAswGYAAAAAAAAAAAAAAA==",
5050
"Icon": "00000000-0000-0000-0000-000000000000.000000|iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHeSURBVDhPpVMxa1NRFP7ebZLSlgaltNpSVCySRUxL0NAh4FJpHWpxcZAUBEPG/AKHDsVBN5eGrCnoYKCDoDiUCKKBjtZBUZtJ2ojYJr40ue\u002B\u002B47k3VzD0hQr94OOed8853/k47z2cCETk2NAgk8mQDQMhhFjK5/Mb9vEotIDruoEsFovEzVvZbPaWLTcQ9uxCpVLp4l\u002Bk0\u002BlEPB5/wIPm7RVC9uxCMpm0UTdKpRKi0WiCQy3wUt8FCvw7VSNxbRapG4voDwucGgyjXC7bzH84ePt1HysbH/GhWoNstzA1OoSFhZuxQqFg8sfu4FutAd\u002BT8KSEYm7v7GJ0YnLClgYLaAcjU9N4Vx9Dda8OBz7OjwywSNsIXY39vEL7TxWpxv2eO3hWHUZ19xc8ti25UdvXzdpNWH0BDj8JiLOrPXfweOu9mRgRhOXUEPr7IiBfYeacB9HaBNRvQH4f6\u002BlgMERwGxJP7grEoq9shj9Uz\u002BVGpmIi4vXcwdzlcePgzLAuZPiSGw869Jg\u002Biw1Mvw50oLGcuoh71y8h1HwB1Js8UfFLnwScNnBhdYVLWsy1IwK5XM5GHaw9uu0LeSCMddZA32lz7zjOQxMcByK1SPU3O/Rjnai2fkjNz8/5L77TyQJ/AJc67LNf3QeWAAAAAElFTkSuQmCC",
5151
"WhenOpened": "2026-01-28T14:48:13.807Z",
52-
"IsPinned": true,
53-
"EditorCaption": ""
52+
"IsPinned": true
5453
},
5554
{
5655
"$type": "Bookmark",
@@ -66,8 +65,7 @@
6665
"RelativeToolTip": "Storm\\Utils.cs",
6766
"ViewState": "AgIAAAcAAAAAAAAAAAAtwB0AAAAZAAAAAAAAAA==",
6867
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
69-
"WhenOpened": "2026-01-28T14:49:13.331Z",
70-
"EditorCaption": ""
68+
"WhenOpened": "2026-01-28T14:49:13.331Z"
7169
}
7270
]
7371
}

.vs/Storm/v17/DocumentLayout.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"RelativeDocumentMoniker": "Storm\\Program.cs",
3333
"ToolTip": "C:\\Users\\avirt\\Desktop\\Storm\\Storm\\Program.cs",
3434
"RelativeToolTip": "Storm\\Program.cs",
35-
"ViewState": "AgIAABAAAAAAAAAAAADwvxYAAAA2AAAAAAAAAA==",
35+
"ViewState": "AgIAADcAAAAAAAAAAAAAwEgAAAAhAAAAAAAAAA==",
3636
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
3737
"WhenOpened": "2026-01-28T14:48:05.268Z",
3838
"IsPinned": true,
@@ -49,8 +49,7 @@
4949
"ViewState": "AgIAAD8AAAAAAAAAAAAswGYAAAAAAAAAAAAAAA==",
5050
"Icon": "00000000-0000-0000-0000-000000000000.000000|iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHeSURBVDhPpVMxa1NRFP7ebZLSlgaltNpSVCySRUxL0NAh4FJpHWpxcZAUBEPG/AKHDsVBN5eGrCnoYKCDoDiUCKKBjtZBUZtJ2ojYJr40ue\u002B\u002B47k3VzD0hQr94OOed8853/k47z2cCETk2NAgk8mQDQMhhFjK5/Mb9vEotIDruoEsFovEzVvZbPaWLTcQ9uxCpVLp4l\u002Bk0\u002BlEPB5/wIPm7RVC9uxCMpm0UTdKpRKi0WiCQy3wUt8FCvw7VSNxbRapG4voDwucGgyjXC7bzH84ePt1HysbH/GhWoNstzA1OoSFhZuxQqFg8sfu4FutAd\u002BT8KSEYm7v7GJ0YnLClgYLaAcjU9N4Vx9Dda8OBz7OjwywSNsIXY39vEL7TxWpxv2eO3hWHUZ19xc8ti25UdvXzdpNWH0BDj8JiLOrPXfweOu9mRgRhOXUEPr7IiBfYeacB9HaBNRvQH4f6\u002BlgMERwGxJP7grEoq9shj9Uz\u002BVGpmIi4vXcwdzlcePgzLAuZPiSGw869Jg\u002Biw1Mvw50oLGcuoh71y8h1HwB1Js8UfFLnwScNnBhdYVLWsy1IwK5XM5GHaw9uu0LeSCMddZA32lz7zjOQxMcByK1SPU3O/Rjnai2fkjNz8/5L77TyQJ/AJc67LNf3QeWAAAAAElFTkSuQmCC",
5151
"WhenOpened": "2026-01-28T14:48:13.807Z",
52-
"IsPinned": true,
53-
"EditorCaption": ""
52+
"IsPinned": true
5453
},
5554
{
5655
"$type": "Bookmark",
@@ -66,8 +65,7 @@
6665
"RelativeToolTip": "Storm\\Utils.cs",
6766
"ViewState": "AgIAAAcAAAAAAAAAAAAtwB0AAAAZAAAAAAAAAA==",
6867
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
69-
"WhenOpened": "2026-01-28T14:49:13.331Z",
70-
"EditorCaption": ""
68+
"WhenOpened": "2026-01-28T14:49:13.331Z"
7169
}
7270
]
7371
}

Storm/Program.cs

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ static void Main(string[] args)
1010

1111
Alias alias_history = new Alias(["--his", "--h", "-h", "-history", "-his", "--history"]);
1212
Alias alias_restore = new Alias(["--res", "--r", "-r", "-restore", "-res", "--restore"]);
13+
Alias alias_permanent = new Alias(["-p", "--permament", "--permanent"]);
14+
1315

1416
if (args.Length == 0)
1517
{
16-
Console.WriteLine("Usage:");
17-
Console.WriteLine($" --history (ALIASES: {alias_history.ToString()})");
18-
Console.WriteLine($" --restore <ID|VERSION> <FILENAME> (ALIASES: {alias_restore.ToString()})");
19-
Console.WriteLine(" <files...> to trash");
18+
Utils.WrteLineColor("Usage:", ConsoleColor.Green);
19+
Utils.WrteLineColor($" --history (ALIASES: {alias_history.ToString()})", ConsoleColor.DarkGreen);
20+
Utils.WrteLineColor($" --permament <files...> (ALIASES: {alias_permanent.ToString()})", ConsoleColor.DarkGreen);
21+
Utils.WrteLineColor($" --restore <ID|VERSION> <FILENAME> (ALIASES: {alias_restore.ToString()})", ConsoleColor.DarkGreen);
22+
Utils.WrteLineColor(" <files...> to trash", ConsoleColor.DarkGreen);
2023
return;
2124
}
2225

@@ -38,6 +41,16 @@ static void Main(string[] args)
3841

3942
Restore(args[1], args[2]);
4043
}
44+
else if (alias_permanent.Have(args[0]))
45+
{
46+
if (args.Length < 2)
47+
{
48+
Utils.WrteLineColor("Error: --permament requires at least one file or folder", ConsoleColor.Red);
49+
return;
50+
}
51+
52+
PermanentDelete(args.Skip(1).ToArray());
53+
}
4154
else if (args[0].StartsWith("-")) // Unknown flag
4255
{
4356
Utils.WrteLineColor($"Unknown option: {args[0]}", ConsoleColor.Red);
@@ -50,6 +63,43 @@ static void Main(string[] args)
5063

5164
}
5265

66+
static void PermanentDelete(string[] paths)
67+
{
68+
Utils.WrteLineColor("WARNING: Permanent deletion cannot be undone!", ConsoleColor.Yellow);
69+
Utils.WrteLineColor("Are you Sure? (y/n)", ConsoleColor.Red);
70+
71+
string ?answer = Console.ReadLine();
72+
73+
if (answer == "") return;
74+
else if (answer.ToLower() == "y") { }
75+
76+
foreach (var path in paths)
77+
{
78+
try
79+
{
80+
if (File.Exists(path))
81+
{
82+
File.Delete(path);
83+
Utils.WrteLineColor($"Permanently deleted file '{path}'", ConsoleColor.Red);
84+
}
85+
else if (Directory.Exists(path))
86+
{
87+
Directory.Delete(path, true);
88+
Utils.WrteLineColor($"Permanently deleted directory '{path}'", ConsoleColor.Red);
89+
}
90+
else
91+
{
92+
Console.WriteLine($"Path not found: {path}");
93+
}
94+
}
95+
catch (Exception ex)
96+
{
97+
Utils.WrteLineColor($"Failed to delete '{path}': {ex.Message}", ConsoleColor.Red);
98+
}
99+
}
100+
}
101+
102+
53103
class Alias
54104
{
55105
private string[] _names = [];
@@ -168,7 +218,7 @@ static void History()
168218

169219
string line = $"{entry.Id,-4} | {entry.Version,-20} | {contents}";
170220
if (i == 0)
171-
PrintRed(line + " (LAST DELETED)");
221+
PrintRed(line + " (LAST TEMPED)");
172222
else
173223
PrintRedIdOnly(entry.Id, line);
174224
}

Storm/bin/Debug/net9.0/Storm.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)