#!/usr/bin/env sh #TODO run command with args #TODO decide which function to run based on args ASDF_DIR=$(dirname $0) run_command () { echo $1 echo $2 # help # # source # source add # source remove # # package install # package list # package uninstall # versions package # versions package --all # use } # # install # install_command() { # } # # # # uninstall_command # uninstall_command() { # } # # # # list # list_packages_command() { # } # # # # list # list_all_versions_command() { # } # # # # list # list_installed_versions_command() { # } # # # # add # # source can be username/repo got GitHub or full git url # add_package_command() { # } # # # # use # use_command() { # } # --help or help # help_command { # } #### Private functions # read_action_script() { # # } # # run_install_script() { # # } # # run_uninstall_script() { # # } clone_git_repo() { git clone $2 $ASDF_DIR/sources/$1 } clone_github_repo() { git clone https://github.com/$2 $ASDF_DIR/sources/$1 } # check if package source dir has proper format. if no delete it # verify_package_source() { # # } #### run_command $@