chore: rename

This commit is contained in:
CDN 2025-04-23 07:45:43 +08:00
parent 1556b11d5f
commit 28b49b7f78
Signed by: CDN
GPG key ID: 0C656827F9F80080
3 changed files with 5 additions and 5 deletions

2
go.mod
View file

@ -1,3 +1,3 @@
module lrc-cli module sub-cli
go 1.22.6 go 1.22.6

View file

@ -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:

View file

@ -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)