public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("alarm", "", "Get state"); columnDisplay.AppendCol("alarm on", "", "Active"); columnDisplay.AppendCol("alarm off", "[<int><h,m,s>]", "No Alarms."); columnDisplay.AppendCol("alarm silent", "[<int><h,m,s>]", "Discord warnings only."); columnDisplay.AppendCol("alarm list", "", "List active alarms."); }
public void AppendDisplayColumns(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol((BranchRemote.FriendlyName)); columnDisplay.AppendCol((BranchRemote.Tip.Sha.Substring(0, 7))); columnDisplay.AppendCol(($"{BranchRemote.Tip.Committer.When:yyyy-MM-dd HH:mm}")); columnDisplay.AppendCol(TagRemote != null ? TagRemote.FriendlyName : ""); if (BranchHead != null) { columnDisplay.AppendCol(($"<== HEAD ")); if (Git.Repo.Head.Tip.Sha == BranchRemote.Tip.Sha) { columnDisplay.Append("Up to date"); } else if (TagHead?.FriendlyName != null) { columnDisplay.Append(TagHead.FriendlyName); } columnDisplay.Append($" {(Git.Repo.Head.Tip.Tree.Count - BranchRemote.Tip.Tree.Count):+0;-0}"); } }
public new string ToString() { GetBranches(); var cd = new ColumnDisplay(); cd.AppendCol("Branch"); cd.AppendCol("Sha"); cd.AppendCol("Commit"); cd.AppendCol("Tag"); cd.AppendCharLine('-'); foreach (var branch in BranchList) { branch.AppendDisplayColumns(ref cd); cd.NewLine(); } cd.AppendLine(Head.ToString()); return(cd.ToString()); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("bot reload", "", "Reload spreadsheet (app settings require a restart)."); columnDisplay.AppendCol("bot update", "", "Update to latest bot version (if available)."); columnDisplay.AppendCol("bot restart", "", "Restart bot."); columnDisplay.AppendCol("bot previous", "", "Switch back to previous version (if available)."); columnDisplay.AppendCol("bot debug", "<host:port>", "Debug on remote IDE."); columnDisplay.AppendCol("bot exit", "", "Stop bot (ends docker instance)."); }
public void Run(MessageCreateEventArgs e) { var cd = new ColumnDisplay(); cd.AppendCol("Network"); cd.AppendCol("Height"); cd.AppendCol("Nodes"); cd.AppendCol("Last block (utc)"); cd.AppendCol("Next (est)"); cd.AppendCol("Previous block times"); cd.AppendCharLine('-'); foreach (var network in Program.NetworkList.Values) { network.AppendDisplayColumns(ref cd); cd.NewLine(); } e.Channel.SendMessageAsync($"```{cd.ToString()}```"); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("help"); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("git", "", "List branche(s)"); columnDisplay.AppendCol("git", "<branch/commit>", "Checkout"); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("mtr", "<ip/host>", "Run mtr test."); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("nodes", "", "List nodes."); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("email", "<user>"); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("version"); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("networks", "", "Lists networks and their average blocktime"); }
public void HelpString(ref ColumnDisplay columnDisplay) { columnDisplay.AppendCol("discord", "", "Display discord status"); }