Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var configuration = new SimpleCommandLineParser().Parse(args);

            configuration
            .Then(BuildContainer)
            .Then(container => container.Resolve <ITagsCloudController>())
            .Then(tagsCloudController => tagsCloudController.Save())
            .ThenAction(() => configuration.Then(config =>
                                                 Console.WriteLine("Visualization has been saved to " +
                                                                   Path.Combine(config.DirectoryToSave,
                                                                                $"{config.OutFileName}.{config.ImageFormat}"))))
            .Then(none => Console.ReadKey())
            .OnFail(Console.WriteLine);
        }