-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from nblumhardt/still-no-tool
Still no luck getting the tool package working; pulling out some more tricks
- Loading branch information
Showing
3 changed files
with
17 additions
and
23 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
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 |
---|---|---|
@@ -1,23 +1,13 @@ | ||
using Autofac; | ||
using Datalust.Piggy; | ||
using Datalust.Piggy.Cli; | ||
using Serilog; | ||
|
||
namespace Datalust.Piggy | ||
{ | ||
class Program | ||
{ | ||
static int Main(string[] args) | ||
{ | ||
var builder = new ContainerBuilder(); | ||
builder.RegisterModule<PiggyModule>(); | ||
var builder = new ContainerBuilder(); | ||
builder.RegisterModule<PiggyModule>(); | ||
|
||
using (var container = builder.Build()) | ||
{ | ||
var clh = container.Resolve<CommandLineHost>(); | ||
var exit = clh.Run(args); | ||
Log.CloseAndFlush(); | ||
return exit; | ||
} | ||
} | ||
} | ||
} | ||
await using var container = builder.Build(); | ||
var commandLineHost = container.Resolve<CommandLineHost>(); | ||
var exit = commandLineHost.Run(args); | ||
await Log.CloseAndFlushAsync(); | ||
return exit; |