28 lines
1,010 B
Go
28 lines
1,010 B
Go
package config
|
|
|
|
// Version stores the current application version
|
|
const Version = "0.4.0"
|
|
|
|
// Usage stores the general usage information
|
|
const Usage = `Usage: sub-cli [command] [options]
|
|
Commands:
|
|
sync Synchronize timeline of two subtitle files
|
|
convert Convert subtitle file to another format
|
|
fmt Format subtitle file
|
|
help Show help`
|
|
|
|
// SyncUsage stores the usage information for the sync command
|
|
const SyncUsage = `Usage: sub-cli sync <source> <target>
|
|
Note:
|
|
Currently supports synchronizing between files of the same format:
|
|
- LRC to LRC
|
|
- SRT to SRT
|
|
If source and target have different numbers of entries, a warning will be shown.`
|
|
|
|
// ConvertUsage stores the usage information for the convert command
|
|
const ConvertUsage = `Usage: sub-cli convert <source> <target>
|
|
Note:
|
|
Target format is determined by file extension. Supported formats:
|
|
.txt Plain text format (No meta/timeline tags, only support as target format)
|
|
.srt SubRip Subtitle format
|
|
.lrc LRC format`
|