gomu

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Gomu

music player written by golang.

Install

go install github.com/tomato3713/gomu@latest

Usage

music file
gomu play path-to-music-file

output stdin:

output stdin: {"artist":"","music_title":"","path":"path-to-music-file","time":4000000000}
play list
# if you play custom play list. after making play list.
gomu play path-to-play-list.json

output stdin:

{"artist":"music1 artist","list_num":0,"list_total":2,"music_title":"music1 title","path":"path-to-music1","time":51000000000}
{"artist":"music2 artist","list_num":1,"list_total":2,"music_title":"music2 title","path":"path-to-music2","time":51000000000}
{"artist":"music3 artist","list_num":2,"list_total":3,"music_title":"music3 title","path":"path-to-music2","time":51000000000}

Example of playlist.json is:

{ 
    [ 
    { "path": "path-to-music1" },
    { "path": "path-to-music2" },
    { "path": "path-to-music3" } 
    ] 
}

play album

gomu album path-to-album-directory

output stdin:

{"album_title":"album title","artist":"music1 artist","music_title":"music title","path":"path-to-music1","time":2000000000,"track_num":1,"track_total":13}
{"album_title":"album title","artist":"music2 artist","music_title":"music title","path":"path-to-music2","time":2000000000,"track_num":2,"track_total":13}
...

Documentation

Overview

Copyright © 2021 Taichi Watanabe <tomato3713@outlook.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL