refactor
This commit is contained in:
parent
aedc4a4518
commit
9b0e2ed6dc
15 changed files with 693 additions and 540 deletions
23
internal/config/constants.go
Normal file
23
internal/config/constants.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package config
|
||||
|
||||
// Version stores the current application version
|
||||
const Version = "0.3.0"
|
||||
|
||||
// Usage stores the general usage information
|
||||
const Usage = `Usage: sub-cli [command] [options]
|
||||
Commands:
|
||||
sync Synchronize timeline of two lyrics files
|
||||
convert Convert lyrics file to another format
|
||||
fmt Format lyrics file
|
||||
help Show help`
|
||||
|
||||
// SyncUsage stores the usage information for the sync command
|
||||
const SyncUsage = `Usage: sub-cli sync <source> <target>`
|
||||
|
||||
// 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`
|
Loading…
Add table
Add a link
Reference in a new issue