Skip to content

Commit 2cfe22e

Browse files
committed
naming
1 parent 8bbe77a commit 2cfe22e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/CommandLineTool/Commands/ListCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public override async Task OnExecuteAsync(CancellationToken ct)
6060
? result.Items.Select(i => i.Columns).ToTable(offset)
6161
: result.Items.Select(i => i.Columns).ToTable();
6262

63-
writer.WriteTable(rows, new TableWriteOptions
63+
writer.WriteTable(rows, new WriteTableOptions
6464
{
6565
RightAlign = [ShowIndices],
6666
Separator = Separator.GetOrDefault(storage.Settings.ColumnSeparator)

src/CommandLineTool/Commands/ListFileSystemCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Beefweb.CommandLineTool.Commands;
1414
public class ListFileSystemCommand(IClientProvider clientProvider, IConsole console, ITabularWriter writer)
1515
: ServerCommandBase(clientProvider)
1616
{
17-
private static readonly TableWriteOptions LongFormatWriteOptions = new() { RightAlign = [true, true, true, false] };
17+
private static readonly WriteTableOptions LongFormatWriteOptions = new() { RightAlign = [true, true, true, false] };
1818

1919
[Argument(0, Description = "Path or special value 'roots'")]
2020
[Required]

src/CommandLineTool/Commands/PlaylistsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override async Task OnExecuteAsync(CancellationToken ct)
3737
? playlistData.ToTable(IndicesFrom0 ? 0 : 1, 1)
3838
: playlistData.ToTable();
3939

40-
writer.WriteTable(rows, new TableWriteOptions { RightAlign = [ShowIndices] });
40+
writer.WriteTable(rows, new WriteTableOptions { RightAlign = [ShowIndices] });
4141
}
4242

4343
private IEnumerable<string> GetPlaylistColumns(PlaylistInfo p)

src/CommandLineTool/Commands/QueueCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public override async Task OnExecuteAsync(CancellationToken ct)
4444
? data.ToTable(baseIndex)
4545
: data.ToTable();
4646

47-
writer.WriteTable(rows, new TableWriteOptions
47+
writer.WriteTable(rows, new WriteTableOptions
4848
{
4949
RightAlign = [ShowIndices],
5050
Separator = Separator.GetOrDefault(storage.Settings.ColumnSeparator)

src/CommandLineTool/Services/TabularWriter.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace Beefweb.CommandLineTool.Services;
66

7-
public class TableWriteOptions
7+
public class WriteTableOptions
88
{
9-
public static TableWriteOptions Default { get; } = new();
9+
public static WriteTableOptions Default { get; } = new();
1010

1111
public IReadOnlyList<bool>? RightAlign { get; init; }
1212

@@ -15,7 +15,7 @@ public class TableWriteOptions
1515

1616
public interface ITabularWriter
1717
{
18-
void WriteTable(IReadOnlyCollection<string[]> rows, TableWriteOptions? writeOptions = null);
18+
void WriteTable(IReadOnlyCollection<string[]> rows, WriteTableOptions? writeOptions = null);
1919

2020
void WriteRow(IReadOnlyCollection<string> values);
2121
}
@@ -44,9 +44,9 @@ public void WriteRow(IReadOnlyCollection<string> values)
4444
}
4545
}
4646

47-
public void WriteTable(IReadOnlyCollection<string[]> rows, TableWriteOptions? options = null)
47+
public void WriteTable(IReadOnlyCollection<string[]> rows, WriteTableOptions? options = null)
4848
{
49-
options ??= TableWriteOptions.Default;
49+
options ??= WriteTableOptions.Default;
5050

5151
var widths = new List<int>();
5252
var rightAlign = options.RightAlign ?? [];

0 commit comments

Comments
 (0)