コード例 #1
0
ファイル: InitalizeCommand.cs プロジェクト: tom-mckinney/regi
        protected override async Task <int> ExecuteAsync(IList <Project> projects, CancellationToken cancellationToken)
        {
            var directory = new DirectoryInfo(_fileSystem.WorkingDirectory);

            var existingProjects = await _discoveryService.IdentifyAllProjectsAsync(directory);

            var config = await _configurationService.CreateConfigurationAsync(existingProjects, Options);

            await _fileSystem.CreateConfigFileAsync(config);

            return(0);
        }