Skip to content

Commit

Permalink
Merge pull request #33 from anthturner/fix-multi-obj-render
Browse files Browse the repository at this point in the history
Fix version, multi-object render in CLI
  • Loading branch information
anthturner authored Nov 18, 2022
2 parents 88cae33 + 8f8ac0b commit 5fdeb1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UniFiSharp.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace UniFiSharp.CLI
{
internal class Program
{
private static string Version => "v1.5.0";
private static string Version => "v1.5.1";
internal static bool Quiet { get; private set; } = false;
internal static CommandApp App { get; private set; } = new CommandApp();
static void Main(string[] args)
Expand Down
2 changes: 1 addition & 1 deletion UniFiSharp.CLI/TableGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal IRenderable GenerateMultipleObjectListTable<TEnumerated>(IEnumerable<TE
{
if (data == null || !data.Any()) return new Text("<No Data>");

var properties = (data as IJsonObject).GetVisibleProperties(Levels.Minimal);
var properties = data.Cast<IJsonObject>().First().GetVisibleProperties(Levels.Minimal);

var tbl = new Table().AddColumns(
properties.Select(p => new TableColumn(p.GetPropertyName()))
Expand Down

0 comments on commit 5fdeb1e

Please sign in to comment.