Clean up
This commit is contained in:
@@ -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"
|
||||
]);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user