[cmd_import] Function removed for lack of need

This commit is contained in:
ayakael 2018-07-16 05:52:37 -08:00
parent 5ffce93103
commit 297a1a01a8
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -1,33 +0,0 @@
#!/bin/bash
# doc cmd_import {
#
# DESCRIPTION
# cmd_import - Wrapper for import functions
#
# USAGE
# cmd_import <source> </path/to/git/dir> </path/to/import/dir> [<...>]
#
# SOURCES
# images Import images into git repository. Image file must be accompanied
# by cue sheet of the same name in folder. Will also import any
# accompanying .log, .accurip, .jpg file barring they share the same
# name.
#
# tracks Import tracks, or archive containing tracks, into git directory
#
# DEPENDENCIES src/cmd_import_tracks src/cmd_import_images
#
# }
cmd_import() {
local CMD="${1}"
local GIT_DIR="${2}"; shift 2
local argList=(${@})
[[ "${CMD}" == "cuetools" ]] && cmd_import_images "${GIT_DIR}" CUETOOLS ${argList[@]}
[[ "${CMD}" == "eac" ]] && cmd_import_images "${GIT_DIR}" EAC ${argList[@]}
[[ "${CMD}" == "tracks" ]] && cmd_import_tracks "${GIT_DIR}" ${argList[@]}
}