Unverified Commit 55403052 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #112 from jmorganca/fix-relative-modelfile

resolve modelfile before passing to server
parents 6e36f948 d4cfee79
......@@ -9,6 +9,7 @@ import (
"net"
"net/http"
"os"
"path/filepath"
"strings"
"time"
......@@ -25,6 +26,11 @@ import (
func create(cmd *cobra.Command, args []string) error {
filename, _ := cmd.Flags().GetString("file")
filename, err := filepath.Abs(filename)
if err != nil {
return err
}
client := api.NewClient()
var spinner *Spinner
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment