{"action":"created","comment":{"url":"https://api.github.com/repos/sjlbos/DocNet/pulls/comments/34326530","id":34326530,"diff_hunk":"@@ -1,15 +1,259 @@\n ﻿using log4net;\n+using CommandLine;\n \n namespace DocNet.Console\n {\n-    public class Program\n+    using System;\n+    using System.IO;\n+\n+    public static class Program\n     {\n+\n         private static readonly ILog Log = LogManager.GetLogger(typeof(Program));\n \n+        //Command Line Options\n+        class Options\n+        {\n+            [Option('i', \"input\", Required = true, HelpText = \"File/Folder to convert to documentation.\")]\n+            public string InputFile { get; set; }\n+            [Option('o', \"output\", Required = true, HelpText = \"Location to output documentation.\")]\n+            public string OutputFile { get; set; }\n+            [Option('r', \"recurse\", HelpText = \"Recursively search through input folder\", DefaultValue = false)]\n+            public bool RecurseOption { get; set; }\n+            [Option('h', \"help\", HelpText = \"Display command line help information\", Required = false, DefaultValue = false)]\n+            public bool Help { get; set; }\n+        }\n+\n+        //Checks that command line input is correct and outputs a custom message depending on whats missing\n+        static private bool CmdCheck(string[] args)\n+        {\n+            //Determine which required commands are missing\n+            if (args.Length == 0)\n+            {\n+                Console.WriteLine(\"No commands found. Use the following commands:\");\n+                return false;\n+            }\n+            //Check if args contains --help\n+            if ((Array.IndexOf(args, \"-h\") >= 0) || (Array.IndexOf(args, \"--help\") >= 0))\n+            {\n+                return false;\n+            }\n+            //Check if other commands exist\n+            if (!(((Array.IndexOf(args, \"-o\") >= 0) || (Array.IndexOf(args, \"--output\") >= 0)) && ((Array.IndexOf(args, \"-i\") >= 0) || (Array.IndexOf(args, \"--input\") >= 0))))\n+            {\n+                Console.WriteLine(\"Required commands not found. Use the following commands:\");\n+                return false;\n+            }\n+            else\n+            {\n+                return true;\n+            }\n+        }\n+\n+        //Get all .cs files from solution or csproj file\n+        /*static public string[] ProjectParser(string projectpath, string filetype)\n+        {\n+            //TODO TEMP CODE PLEASE IGNORE\n+            string[] filelist = new string[1];\n+            filelist[0] = \"-1\";\n+            //TODO END TEMP CODE\n+            return filelist;\n+        } */\n+\n+        //Get the .CS files contained in the file or directory\n+        static public string[] GetCsFiles(string inputFile, string outputFile, bool recurseOption)","path":"DocNet.Console/Program.cs","position":65,"original_position":65,"commit_id":"21d510bb704b67ab5fc8e7a95b628f9a17045b63","original_commit_id":"21d510bb704b67ab5fc8e7a95b628f9a17045b63","user":{"login":"cccarr","id":12448885,"avatar_url":"https://avatars.githubusercontent.com/u/12448885?v=3","gravatar_id":"","url":"https://api.github.com/users/cccarr","html_url":"https://github.com/cccarr","followers_url":"https://api.github.com/users/cccarr/followers","following_url":"https://api.github.com/users/cccarr/following{/other_user}","gists_url":"https://api.github.com/users/cccarr/gists{/gist_id}","starred_url":"https://api.github.com/users/cccarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cccarr/subscriptions","organizations_url":"https://api.github.com/users/cccarr/orgs","repos_url":"https://api.github.com/users/cccarr/repos","events_url":"https://api.github.com/users/cccarr/events{/privacy}","received_events_url":"https://api.github.com/users/cccarr/received_events","type":"User","site_admin":false},"body":"Moved path exists and Get.File extension to other method","created_at":"2015-07-10T04:11:52Z","updated_at":"2015-07-10T04:11:52Z","html_url":"https://github.com/sjlbos/DocNet/pull/9#discussion_r34326530","pull_request_url":"https://api.github.com/repos/sjlbos/DocNet/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/sjlbos/DocNet/pulls/comments/34326530"},"html":{"href":"https://github.com/sjlbos/DocNet/pull/9#discussion_r34326530"},"pull_request":{"href":"https://api.github.com/repos/sjlbos/DocNet/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/sjlbos/DocNet/pulls/9","id":39548803,"html_url":"https://github.com/sjlbos/DocNet/pull/9","diff_url":"https://github.com/sjlbos/DocNet/pull/9.diff","patch_url":"https://github.com/sjlbos/DocNet/pull/9.patch","issue_url":"https://api.github.com/repos/sjlbos/DocNet/issues/9","number":9,"state":"open","locked":false,"title":"Attempt at Wrapping Document Methods","user":{"login":"cccarr","id":12448885,"avatar_url":"https://avatars.githubusercontent.com/u/12448885?v=3","gravatar_id":"","url":"https://api.github.com/users/cccarr","html_url":"https://github.com/cccarr","followers_url":"https://api.github.com/users/cccarr/followers","following_url":"https://api.github.com/users/cccarr/following{/other_user}","gists_url":"https://api.github.com/users/cccarr/gists{/gist_id}","starred_url":"https://api.github.com/users/cccarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cccarr/subscriptions","organizations_url":"https://api.github.com/users/cccarr/orgs","repos_url":"https://api.github.com/users/cccarr/repos","events_url":"https://api.github.com/users/cccarr/events{/privacy}","received_events_url":"https://api.github.com/users/cccarr/received_events","type":"User","site_admin":false},"body":"-Document Methods from DocNet class are currently in the right locations but commented out with TODO. \r\n\r\n-Not sure how to handle the DocNetStatus enum return.\r\n\r\n- The string[] method returns are old and will be replaced with returns that handle the enum ","created_at":"2015-07-09T05:16:48Z","updated_at":"2015-07-10T04:11:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0348379e628f7f7adb575a614e23a2564c7b423","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sjlbos/DocNet/pulls/9/commits","review_comments_url":"https://api.github.com/repos/sjlbos/DocNet/pulls/9/comments","review_comment_url":"https://api.github.com/repos/sjlbos/DocNet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sjlbos/DocNet/issues/9/comments","statuses_url":"https://api.github.com/repos/sjlbos/DocNet/statuses/21d510bb704b67ab5fc8e7a95b628f9a17045b63","head":{"label":"sjlbos:commandline1","ref":"commandline1","sha":"21d510bb704b67ab5fc8e7a95b628f9a17045b63","user":{"login":"sjlbos","id":2381386,"avatar_url":"https://avatars.githubusercontent.com/u/2381386?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlbos","html_url":"https://github.com/sjlbos","followers_url":"https://api.github.com/users/sjlbos/followers","following_url":"https://api.github.com/users/sjlbos/following{/other_user}","gists_url":"https://api.github.com/users/sjlbos/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlbos/subscriptions","organizations_url":"https://api.github.com/users/sjlbos/orgs","repos_url":"https://api.github.com/users/sjlbos/repos","events_url":"https://api.github.com/users/sjlbos/events{/privacy}","received_events_url":"https://api.github.com/users/sjlbos/received_events","type":"User","site_admin":false},"repo":{"id":35624313,"name":"DocNet","full_name":"sjlbos/DocNet","owner":{"login":"sjlbos","id":2381386,"avatar_url":"https://avatars.githubusercontent.com/u/2381386?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlbos","html_url":"https://github.com/sjlbos","followers_url":"https://api.github.com/users/sjlbos/followers","following_url":"https://api.github.com/users/sjlbos/following{/other_user}","gists_url":"https://api.github.com/users/sjlbos/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlbos/subscriptions","organizations_url":"https://api.github.com/users/sjlbos/orgs","repos_url":"https://api.github.com/users/sjlbos/repos","events_url":"https://api.github.com/users/sjlbos/events{/privacy}","received_events_url":"https://api.github.com/users/sjlbos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjlbos/DocNet","description":"A documentation generation tool for C# and Visual Studio.","fork":false,"url":"https://api.github.com/repos/sjlbos/DocNet","forks_url":"https://api.github.com/repos/sjlbos/DocNet/forks","keys_url":"https://api.github.com/repos/sjlbos/DocNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjlbos/DocNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjlbos/DocNet/teams","hooks_url":"https://api.github.com/repos/sjlbos/DocNet/hooks","issue_events_url":"https://api.github.com/repos/sjlbos/DocNet/issues/events{/number}","events_url":"https://api.github.com/repos/sjlbos/DocNet/events","assignees_url":"https://api.github.com/repos/sjlbos/DocNet/assignees{/user}","branches_url":"https://api.github.com/repos/sjlbos/DocNet/branches{/branch}","tags_url":"https://api.github.com/repos/sjlbos/DocNet/tags","blobs_url":"https://api.github.com/repos/sjlbos/DocNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjlbos/DocNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjlbos/DocNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjlbos/DocNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjlbos/DocNet/statuses/{sha}","languages_url":"https://api.github.com/repos/sjlbos/DocNet/languages","stargazers_url":"https://api.github.com/repos/sjlbos/DocNet/stargazers","contributors_url":"https://api.github.com/repos/sjlbos/DocNet/contributors","subscribers_url":"https://api.github.com/repos/sjlbos/DocNet/subscribers","subscription_url":"https://api.github.com/repos/sjlbos/DocNet/subscription","commits_url":"https://api.github.com/repos/sjlbos/DocNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjlbos/DocNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjlbos/DocNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjlbos/DocNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/sjlbos/DocNet/contents/{+path}","compare_url":"https://api.github.com/repos/sjlbos/DocNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjlbos/DocNet/merges","archive_url":"https://api.github.com/repos/sjlbos/DocNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjlbos/DocNet/downloads","issues_url":"https://api.github.com/repos/sjlbos/DocNet/issues{/number}","pulls_url":"https://api.github.com/repos/sjlbos/DocNet/pulls{/number}","milestones_url":"https://api.github.com/repos/sjlbos/DocNet/milestones{/number}","notifications_url":"https://api.github.com/repos/sjlbos/DocNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjlbos/DocNet/labels{/name}","releases_url":"https://api.github.com/repos/sjlbos/DocNet/releases{/id}","created_at":"2015-05-14T17:05:13Z","updated_at":"2015-05-14T17:21:29Z","pushed_at":"2015-07-09T20:11:33Z","git_url":"git://github.com/sjlbos/DocNet.git","ssh_url":"git@github.com:sjlbos/DocNet.git","clone_url":"https://github.com/sjlbos/DocNet.git","svn_url":"https://github.com/sjlbos/DocNet","homepage":null,"size":764,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sjlbos:master","ref":"master","sha":"e57b068ae153e2f5048077c7d32bd4ae229f4213","user":{"login":"sjlbos","id":2381386,"avatar_url":"https://avatars.githubusercontent.com/u/2381386?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlbos","html_url":"https://github.com/sjlbos","followers_url":"https://api.github.com/users/sjlbos/followers","following_url":"https://api.github.com/users/sjlbos/following{/other_user}","gists_url":"https://api.github.com/users/sjlbos/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlbos/subscriptions","organizations_url":"https://api.github.com/users/sjlbos/orgs","repos_url":"https://api.github.com/users/sjlbos/repos","events_url":"https://api.github.com/users/sjlbos/events{/privacy}","received_events_url":"https://api.github.com/users/sjlbos/received_events","type":"User","site_admin":false},"repo":{"id":35624313,"name":"DocNet","full_name":"sjlbos/DocNet","owner":{"login":"sjlbos","id":2381386,"avatar_url":"https://avatars.githubusercontent.com/u/2381386?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlbos","html_url":"https://github.com/sjlbos","followers_url":"https://api.github.com/users/sjlbos/followers","following_url":"https://api.github.com/users/sjlbos/following{/other_user}","gists_url":"https://api.github.com/users/sjlbos/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlbos/subscriptions","organizations_url":"https://api.github.com/users/sjlbos/orgs","repos_url":"https://api.github.com/users/sjlbos/repos","events_url":"https://api.github.com/users/sjlbos/events{/privacy}","received_events_url":"https://api.github.com/users/sjlbos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjlbos/DocNet","description":"A documentation generation tool for C# and Visual Studio.","fork":false,"url":"https://api.github.com/repos/sjlbos/DocNet","forks_url":"https://api.github.com/repos/sjlbos/DocNet/forks","keys_url":"https://api.github.com/repos/sjlbos/DocNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjlbos/DocNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjlbos/DocNet/teams","hooks_url":"https://api.github.com/repos/sjlbos/DocNet/hooks","issue_events_url":"https://api.github.com/repos/sjlbos/DocNet/issues/events{/number}","events_url":"https://api.github.com/repos/sjlbos/DocNet/events","assignees_url":"https://api.github.com/repos/sjlbos/DocNet/assignees{/user}","branches_url":"https://api.github.com/repos/sjlbos/DocNet/branches{/branch}","tags_url":"https://api.github.com/repos/sjlbos/DocNet/tags","blobs_url":"https://api.github.com/repos/sjlbos/DocNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjlbos/DocNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjlbos/DocNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjlbos/DocNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjlbos/DocNet/statuses/{sha}","languages_url":"https://api.github.com/repos/sjlbos/DocNet/languages","stargazers_url":"https://api.github.com/repos/sjlbos/DocNet/stargazers","contributors_url":"https://api.github.com/repos/sjlbos/DocNet/contributors","subscribers_url":"https://api.github.com/repos/sjlbos/DocNet/subscribers","subscription_url":"https://api.github.com/repos/sjlbos/DocNet/subscription","commits_url":"https://api.github.com/repos/sjlbos/DocNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjlbos/DocNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjlbos/DocNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjlbos/DocNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/sjlbos/DocNet/contents/{+path}","compare_url":"https://api.github.com/repos/sjlbos/DocNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjlbos/DocNet/merges","archive_url":"https://api.github.com/repos/sjlbos/DocNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjlbos/DocNet/downloads","issues_url":"https://api.github.com/repos/sjlbos/DocNet/issues{/number}","pulls_url":"https://api.github.com/repos/sjlbos/DocNet/pulls{/number}","milestones_url":"https://api.github.com/repos/sjlbos/DocNet/milestones{/number}","notifications_url":"https://api.github.com/repos/sjlbos/DocNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjlbos/DocNet/labels{/name}","releases_url":"https://api.github.com/repos/sjlbos/DocNet/releases{/id}","created_at":"2015-05-14T17:05:13Z","updated_at":"2015-05-14T17:21:29Z","pushed_at":"2015-07-09T20:11:33Z","git_url":"git://github.com/sjlbos/DocNet.git","ssh_url":"git@github.com:sjlbos/DocNet.git","clone_url":"https://github.com/sjlbos/DocNet.git","svn_url":"https://github.com/sjlbos/DocNet","homepage":null,"size":764,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sjlbos/DocNet/pulls/9"},"html":{"href":"https://github.com/sjlbos/DocNet/pull/9"},"issue":{"href":"https://api.github.com/repos/sjlbos/DocNet/issues/9"},"comments":{"href":"https://api.github.com/repos/sjlbos/DocNet/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/sjlbos/DocNet/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/sjlbos/DocNet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sjlbos/DocNet/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/sjlbos/DocNet/statuses/21d510bb704b67ab5fc8e7a95b628f9a17045b63"}}}}