mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
simple :info command for dumping set info from CLI
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1250 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -135,6 +135,15 @@ void CLISetInterface::handleCommand(const String& command) {
|
||||
ei.exported_images.clear();
|
||||
ctx.closeScope(scope);
|
||||
scope = ctx.openScope();
|
||||
} else if (before == _(":i") || before == _(":info")) {
|
||||
if (set) {
|
||||
cli << _("set: ") << set->identification() << ENDL;
|
||||
cli << _("filename: ") << set->absoluteFilename() << ENDL;
|
||||
cli << _("relative: ") << set->relativeFilename() << ENDL;
|
||||
cli << String::Format(_("#cards: %d"), set->cards.size()) << ENDL;
|
||||
} else {
|
||||
cli << _("No set loaded") << ENDL;
|
||||
}
|
||||
} else if (before == _(":c") || before == _(":cd")) {
|
||||
if (arg.empty()) {
|
||||
cli.showError(_("Give a new working directory."));
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
const Char* BRIGHT = _("\x1B[1m");
|
||||
const Char* NORMAL = _("\x1B[0m");
|
||||
const Char* PARAM = _("\x1B[33m");
|
||||
const Char* PARAM = _("\x1B[36m");
|
||||
const Char* FILE_EXT = _("\x1B[0;1m");
|
||||
const Char* GRAY = _("\x1B[1;30m");
|
||||
const Char* RED = _("\x1B[1;31m");
|
||||
|
||||
Reference in New Issue
Block a user