mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move markup to resources in list-namespaces command.
This commit is contained in:
@@ -1657,11 +1657,11 @@ pool with no way of using them to identify you.</value>
|
||||
<comment>{0} is the number of supported archive formats</comment>
|
||||
</data>
|
||||
<data name="Namespaces_for_0" xml:space="preserve">
|
||||
<value>Namespaces for {0}:</value>
|
||||
<value>[bold][blue]Namespaces for [teal]{0}[/]:[/][/]</value>
|
||||
<comment>{0} is the filesystem plugin name</comment>
|
||||
</data>
|
||||
<data name="Title_Namespace" xml:space="preserve">
|
||||
<value>Namespace</value>
|
||||
<value>[darkgreen]Namespace[/]</value>
|
||||
</data>
|
||||
<data name="Invalid_list_of_items" xml:space="preserve">
|
||||
<value>Invalid list of items</value>
|
||||
|
||||
@@ -68,15 +68,15 @@ sealed class ListNamespacesCommand : Command<ListNamespacesCommand.Settings>
|
||||
|
||||
Table table = new()
|
||||
{
|
||||
Title = new TableTitle(string.Format($"[bold][blue]{UI.Namespaces_for_0}[/][/]",
|
||||
$"[teal]{Markup.Escape(fs.Name)}[/]"))
|
||||
Title = new TableTitle(string.Format(UI.Namespaces_for_0,
|
||||
Markup.Escape(fs.Name)))
|
||||
};
|
||||
|
||||
table.Border(TableBorder.Rounded);
|
||||
table.BorderColor(Color.Yellow);
|
||||
|
||||
table.AddColumn(new TableColumn(new Markup($"[bold][darkgreen]{UI.Title_Namespace}[/][/]").Centered()));
|
||||
table.AddColumn(new TableColumn(new Markup($"[bold][slateblue1]{UI.Title_Description}[/][/]").Centered()));
|
||||
table.AddColumn(new TableColumn(new Markup(UI.Title_Namespace).Centered()));
|
||||
table.AddColumn(new TableColumn(new Markup(UI.Title_Description).Centered()));
|
||||
|
||||
foreach(KeyValuePair<string, string> @namespace in fs.Namespaces.OrderBy(t => t.Key))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user