Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ import (
"strings"

"github.com/sirupsen/logrus"
"github.com/urfave/cli"

"github.com/spaceuptech/galaxy/cmd"
"github.com/spaceuptech/galaxy/model"
"github.com/spaceuptech/galaxy/proxy"
"github.com/spaceuptech/galaxy/runner"
"github.com/spaceuptech/galaxy/runner/driver"
"github.com/spaceuptech/galaxy/runner/services"
"github.com/spaceuptech/galaxy/runner/services"
"github.com/spaceuptech/galaxy/server"
"github.com/spaceuptech/galaxy/utils/auth"
"github.com/urfave/cli"
)

func actionRunner(c *cli.Context) error {
Expand Down Expand Up @@ -146,17 +147,18 @@ func actionBuildCode(c *cli.Context) error {
func actionLogin(c *cli.Context) error {
userName := c.String("username")
key := c.String("key")
serverUrl := c.String("url")
local := c.Bool("local")
tempurl := c.String("url")
url := "url1"
url := "url1" // todo set default url
if local {
url = "ur2"
}
if tempurl != "default url" {
url = tempurl
url = "localhost:4122"
}
if err := cmd.LoginStart(userName, key, url, local); err != nil {
return err
if serverUrl != "default url" { // todo get default url
url = serverUrl
}
return nil
return cmd.LoginStart(userName, key, url, local)
}

func actionSetup(c *cli.Context) error {
return cmd.CodeSetup()
}
162 changes: 0 additions & 162 deletions cmd/code.go

This file was deleted.

66 changes: 0 additions & 66 deletions cmd/creds.go

This file was deleted.

Loading