This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.2.0, the last commit to only come out at the same time as the rele…
…ase.
- Loading branch information
1 parent
be689eb
commit 9f2fc62
Showing
48 changed files
with
2,302 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aqua.Commands.Executables | ||
{ | ||
public class Calculate : Command | ||
{ | ||
public Calculate(string name, string description) : base(name, description) { } | ||
int firstNumber = 0, secondNumber = 0, calc; | ||
|
||
public override string Execute(string[] args) | ||
{ | ||
switch (args[0]) | ||
{ | ||
case "add": | ||
Int32.TryParse(args[1], out firstNumber); | ||
Int32.TryParse(args[2], out secondNumber); | ||
|
||
calc = firstNumber + secondNumber; | ||
return calc.ToString(); | ||
|
||
case "min": | ||
Int32.TryParse(args[1], out firstNumber); | ||
Int32.TryParse(args[2], out secondNumber); | ||
|
||
calc = firstNumber - secondNumber; | ||
return calc.ToString(); | ||
|
||
case "mult": | ||
Int32.TryParse(args[1], out firstNumber); | ||
Int32.TryParse(args[2], out secondNumber); | ||
|
||
calc = firstNumber * secondNumber; | ||
return calc.ToString(); | ||
|
||
case "div": | ||
Int32.TryParse(args[1], out firstNumber); | ||
Int32.TryParse(args[2], out secondNumber); | ||
|
||
calc = firstNumber / secondNumber; | ||
return calc.ToString(); | ||
|
||
case "perc": | ||
Int32.TryParse(args[1], out firstNumber); | ||
Int32.TryParse(args[2], out secondNumber); | ||
|
||
calc = (100 * secondNumber) / firstNumber; | ||
return calc.ToString() + "%"; | ||
} | ||
|
||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aqua.Commands.Executables | ||
{ | ||
public class Manual : Command | ||
{ | ||
public Manual (string name, string description) : base (name, description) { } | ||
|
||
public override string Execute(string[] args) | ||
{ | ||
for (int i = 0; i < Manager.descriptionStrings.Count; i++) | ||
{ | ||
if (Manager.commandStrings[i] == "f" || Manager.commandStrings[i] == "net") | ||
Console.WriteLine(); | ||
|
||
Console.ForegroundColor = ConsoleColor.Cyan; | ||
Console.Write($" {Manager.commandStrings[i]} - "); | ||
|
||
Console.ForegroundColor = ConsoleColor.Gray; | ||
Console.WriteLine(Manager.descriptionStrings[i]); | ||
} | ||
|
||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aqua.Commands.Executables | ||
{ | ||
public class TextEditor : Command | ||
{ | ||
public TextEditor(string name, string description) : base(name, description) { } | ||
|
||
public override string Execute(string[] args) | ||
{ | ||
return Miscellaneous.TextEditor.Run(args); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
|
||
namespace Aqua.Commands.Executables | ||
{ | ||
public class Time : Command | ||
{ | ||
public Time (string name, string description) : base (name, description) { } | ||
|
||
public override string Execute(string[] args) | ||
{ | ||
switch (args[0]) | ||
{ | ||
case "compile": | ||
Console.ForegroundColor = ConsoleColor.Gray; | ||
return Miscellaneous.Compilation.Date + " | " + Miscellaneous.Compilation.Time; | ||
|
||
case "direct": | ||
Console.ForegroundColor = ConsoleColor.Gray; | ||
return DateTime.Now.ToString("dddd M MMMM yyyy | HH:mm:ss.fff"); | ||
|
||
default: | ||
Console.ForegroundColor = ConsoleColor.DarkGray; | ||
Console.WriteLine(" Next time, please specify an argument [\"compile\" or \"direct\"]."); | ||
|
||
Console.ForegroundColor = ConsoleColor.Gray; | ||
return DateTime.Now.ToString("dddd M MMMM yyyy | HH:mm:ss.fff"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.