package common import ( "fmt" "github.com/starfleetcptn/gomft/internal/db" ) templ NameField() {
Choose a descriptive name to identify this configuration.
Glob pattern for files to transfer. Leave empty to transfer all files.
Pattern for output filename. Use variables like ${`filename`}, ${`timestamp`}, ${`date`}
• ${`filename`} - Original filename without extension (e.g., "report") • ${`ext`} - Original file extension (e.g., "csv") • ${`date:format`} - Current date using Go's time format: - 2006-01-02 → YYYY-MM-DD - 20060102 → YYYYMMDD - 2006-01-02 15:04:05 → YYYY-MM-DD_HH:MM:SS Example: ${`filename`}_${`date:2006-01-02`}_${`ext`} → "report_2023-03-01.csv"
Files will be moved here after successful transfer
Files with the same hash that have been successfully processed before will be skipped
Number of files to transfer simultaneously (higher values may improve performance but increase resource usage)
Select the rclone command to use for this configuration.
Optional: Additional rclone flags for fine-tuning the transfer.
{ command.Description }
if len(command.Flags) > 0 {Default: { flag.DefaultValue }
}Default: { flag.DefaultValue }
}rclone { command.Name } [flags] source:path
} else {
rclone { command.Name } [flags] source:path dest:path
}