Merge pull request #112 from jmorganca/fix-relative-modelfile
resolve modelfile before passing to server
This commit is contained in:
commit
5540305293
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue