This commit is contained in:
2024-04-22 20:25:20 +02:00
parent 7e249e12c4
commit 3a46e20d38
4 changed files with 20 additions and 51 deletions

View File

@@ -24,7 +24,7 @@ public partial class MycroForge
private async Task ExecuteAsync()
{
await Bash.RunAsync([
await Bash.ExecuteAsync([
"source .venv/bin/activate",
"uvicorn main:app --reload"
]);

View File

@@ -9,9 +9,7 @@ public partial class MycroForge : RootCommand
public MycroForge(IEnumerable<ISubCommandOf<MycroForge>> commands) : base("The MycroForge CLI tool.")
{
commands
.Cast<Command>()
.ToList()
.ForEach(AddCommand);
foreach (var subCommandOf in commands.Cast<Command>())
AddCommand(subCommandOf);
}
}