chore: rename
This commit is contained in:
parent
1556b11d5f
commit
28b49b7f78
3 changed files with 5 additions and 5 deletions
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
||||||
module lrc-cli
|
module sub-cli
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
2
main.go
2
main.go
|
@ -19,7 +19,7 @@ func main() {
|
||||||
case "fmt":
|
case "fmt":
|
||||||
fmtLyrics(os.Args[2:])
|
fmtLyrics(os.Args[2:])
|
||||||
case "version":
|
case "version":
|
||||||
fmt.Printf("lyc-cli version %s\n", VERSION)
|
fmt.Printf("sub-cli version %s\n", VERSION)
|
||||||
case "help":
|
case "help":
|
||||||
fmt.Println(USAGE)
|
fmt.Println(USAGE)
|
||||||
default:
|
default:
|
||||||
|
|
6
model.go
6
model.go
|
@ -22,15 +22,15 @@ type SRTEntry struct {
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION = "0.3.0"
|
VERSION = "0.3.0"
|
||||||
USAGE = `Usage: lyc-cli [command] [options]
|
USAGE = `Usage: sub-cli [command] [options]
|
||||||
Commands:
|
Commands:
|
||||||
sync Synchronize timeline of two lyrics files
|
sync Synchronize timeline of two lyrics files
|
||||||
convert Convert lyrics file to another format
|
convert Convert lyrics file to another format
|
||||||
fmt Format lyrics file
|
fmt Format lyrics file
|
||||||
help Show help`
|
help Show help`
|
||||||
|
|
||||||
SYNC_USAGE = `Usage: lyc-cli sync <source> <target>`
|
SYNC_USAGE = `Usage: sub-cli sync <source> <target>`
|
||||||
CONVERT_USAGE = `Usage: lyc-cli convert <source> <target>
|
CONVERT_USAGE = `Usage: sub-cli convert <source> <target>
|
||||||
Note:
|
Note:
|
||||||
Target format is determined by file extension. Supported formats:
|
Target format is determined by file extension. Supported formats:
|
||||||
.txt Plain text format(No meta/timeline tags, only support as target format)
|
.txt Plain text format(No meta/timeline tags, only support as target format)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue