Beispiel #1
0
        public override bool Execute(string[] arguments)
        {
            var parameters = new AssemblyDocumentParameters();

            if (!ArgumentParser.ParseArguments(arguments, parameters))
            {
                return(false);
            }

            ILog log = new ConsoleLog();

            var documenter = new AssemblyDocumenter.AssemblyDocumenter(log);

            documenter.Document(parameters.AssemblyPath, parameters.XmlPath, parameters.OutputDirectory);

            return(true);
        }
        public override bool Execute(string[] arguments)
        {
            var parameters = new AssemblyDocumentParameters();

            if (!ArgumentParser.ParseArguments(arguments, parameters))
            {
                return(false);
            }

            FolderLock.ExitIfFolderIsLocked(parameters.OutputDirectory.ToString(), CurrentState.Log);

            using (var l = new FolderLock(parameters.OutputDirectory.ToString()))
            {
                var documenter = new AssemblyDocumenter.AssemblyDocumenter(CurrentState.Log);

                documenter.Document(parameters.AssemblyPath, parameters.XmlPath, parameters.OutputDirectory);
            }

            return(true);
        }