Enhance output path selection in the GUI

Enables the use of template tokens when exporting multiple channels
Closes #676
This commit is contained in:
Tyrrrz
2023-02-13 19:48:57 +02:00
parent f1ae0266f1
commit c8d83beb8d
5 changed files with 115 additions and 25 deletions

View File

@@ -26,7 +26,11 @@ public abstract class ExportCommandBase : TokenCommandBase
[CommandOption(
"output",
'o',
Description = "Output file or directory path. Directory path should end in a slash."
Description =
"Output file or directory path. " +
"If a directory is specified, file names will be generated automatically based on the channel names and other parameters. " +
"Directory path should end with a slash to avoid ambiguity. " +
"Supports template tokens, see the documentation for more info."
)]
public string OutputPath
{
@@ -58,7 +62,8 @@ public abstract class ExportCommandBase : TokenCommandBase
[CommandOption(
"partition",
'p',
Description = "Split output into partitions, each limited to this number of messages (e.g. '100') or file size (e.g. '10mb')."
Description =
"Split output into partitions, each limited to this number of messages (e.g. '100') or file size (e.g. '10mb')."
)]
public PartitionLimit PartitionLimit { get; init; } = PartitionLimit.Null;