feat: sync
This commit is contained in:
commit
3d25058496
4 changed files with 171 additions and 0 deletions
23
main.go
Normal file
23
main.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// parse args
|
||||
if len(os.Args) < 2 {
|
||||
fmt.Println(USAGE)
|
||||
return
|
||||
}
|
||||
switch os.Args[1] {
|
||||
case "sync":
|
||||
syncLyrics(os.Args[2:])
|
||||
case "help":
|
||||
fmt.Println(USAGE)
|
||||
default:
|
||||
fmt.Println("Unknown command")
|
||||
fmt.Println(USAGE)
|
||||
}
|
||||
}
|
Reference in a new issue