예제 #1
0
 public DumpCommentsForPost()
 {
     this.IsCommand("dump-comments", "Dumps the comments for a WordPress post in JSON.");
     LoginInfo.AddXmlRpcLogin(this);
     this.HasRequiredOption("postid=", "The post id to load comments for.", v => PostId = Int32.Parse(v));
     this.SkipsCommandSummaryBeforeRunning();
 }
예제 #2
0
 public DumpPost()
 {
     this.IsCommand("dump-post", "Writes a WordPress post in json.");
     LoginInfo.AddXmlRpcLogin(this);
     this.HasRequiredOption("postid=", "The post id to load comments for.", v => PostId             = Int32.Parse(v));
     this.HasOption("raw", "Include more of the original fields, in raw format.", v => UseRawFormat = true);
     this.SkipsCommandSummaryBeforeRunning();
 }
예제 #3
0
 public TestAllCommand()
 {
     this.IsCommand("test-all", "Tests all the things.");
     LoginInfo.AddXmlRpcLogin(this);
 }
예제 #4
0
파일: DumpTags.cs 프로젝트: zidad/JoeBlogs
 public DumpTags()
 {
     this.IsCommand("dump-tags", "Writes tags for a blog in json.");
     LoginInfo.AddXmlRpcLogin(this);
     this.SkipsCommandSummaryBeforeRunning();
 }
예제 #5
0
 public DumpCategories()
 {
     this.IsCommand("dump-categories", "Writes categories in JSON.");
     LoginInfo.AddXmlRpcLogin(this);
     this.SkipsCommandSummaryBeforeRunning();
 }