Пример #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
 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();
 }