29 lines
658 B
Go
29 lines
658 B
Go
package main
|
|
|
|
type Timestamp struct {
|
|
Hours int
|
|
Minutes int
|
|
Seconds int
|
|
Milliseconds int
|
|
}
|
|
|
|
type Lyrics struct {
|
|
Metadata map[string]string
|
|
Timeline []Timestamp
|
|
Content []string
|
|
}
|
|
|
|
const (
|
|
VERSION = "0.2.0"
|
|
USAGE = `Usage: lyc-cli [command] [options]
|
|
Commands:
|
|
sync Synchronize timeline of two lyrics files
|
|
convert Convert lyrics file to another format
|
|
help Show help`
|
|
|
|
SYNC_USAGE = `Usage: lyc-cli sync <source> <target>`
|
|
CONVERT_USAGE = `Usage: lyc-cli convert <source> <target>
|
|
Note:
|
|
Target format is determined by file extension. Supported formats:
|
|
.txt Plain text format(No meta/timeline tags)`
|
|
)
|