Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 608 Bytes
using NanoByte.Common.Tasks;
using ZeroInstall.Services;
using ZeroInstall.Store.Model;
class MinimalZeroInstall : ServiceLocator
{
public static void Main(string[] args)
{
new MinimalZeroInstall().Run(new Requirements(args[0]));
}
public MinimalZeroInstall() : base(new CliTaskHandler())
{}
private void Run(Requirements requirements)
{
var selections = Solver.Solve(requirements);
var missing = SelectionsManager.GetUncachedImplementations(selections);
Fetcher.Fetch(missing);
Executor.Start(selections);
}
}