Skip to content

Commit

Permalink
Make functions smaller
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin committed Jul 20, 2024
1 parent 7646466 commit be9a678
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ramalama
Original file line number Diff line number Diff line change
Expand Up @@ -368,20 +368,24 @@ push_cli() {
"${conman[@]}" push "$model_name" "$to_location"
}

init_rama() {
select_container_manager
get_llm_store
mkdirs
}

main() {
trap 'print_backtrace' ERR
set -o errtrace
set -eu -o pipefail

local conman_bin
select_container_manager
local llm_store
get_llm_store
mkdirs
local conman=("$conman_bin" "--root" "$llm_store")
local conman_run
local vol
local ngl="false"
init_rama
if [ "$#" -lt 1 ]; then
usage
fi
Expand Down

0 comments on commit be9a678

Please sign in to comment.