khalzam-cli

Crates.iokhalzam-cli
lib.rskhalzam-cli
version0.1.5
sourcesrc
created_at2019-03-25 21:54:28.033988
updated_at2019-08-18 12:32:04.736211
descriptioncli wrapper for khalzam library
homepage
repositoryhttps://github.com/kisasexypantera94/khalzam-cli
max_upload_size
id123820
size12,835
David Grinberg (kisasexypantera94)

documentation

README

khalzam-cli

Latest Version

About

CLI interface for khalzam library

Installation

Using crates.io:

$ cargo install khalzam-cli

Building

$ git clone https://github.com/kisasexypantera94/khalzam-cli
$ cd khalzam-cli
$ cargo build --release
$ ./target/release/khalzam-cli -h
khalzam-cli 0.1.0
kisasexypantera94 <green.grinya@gmail.com>

USAGE:
    khalzam-cli [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    add              Add song
    add_dir          Add songs inside directory
    delete           Delete song
    help             Prints this message or the help of the given subcommand(s)
    recognize        Recognize audiofile
    recognize_dir    Recognize songs inside directory

Setup

You need to create and initialize database:

$ sh ./setup.sh

Usage

$ user=kisasexypantera94 dbname=khalzam \ # dbname default value is `khalzam`
khalzam-cli recognize -i samples/disorderlive.mp3
Recognizing `disorderlive.mp3` ...
Best match: joydivisiondisorder

Done in 90.201716ms
Commit count: 15

cargo fmt