Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/flow_cli_module' into flow_cli_m…
Browse files Browse the repository at this point in the history
…odule
  • Loading branch information
Gregor Gololicic committed Nov 21, 2022
2 parents 2776b06 + 3a4e77b commit 7685fb2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 36 deletions.
32 changes: 0 additions & 32 deletions pkg/flowser/app_test.go

This file was deleted.

17 changes: 13 additions & 4 deletions pkg/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ package main
import (
"fmt"
"github.com/onflowser/flowser/pkg/flowser"
"os"
"path"
)

func main() {
app := flowser.New()
installDir := path.Join("..", "test-install")

if !app.Installed(installDir) {
err := app.Install(installDir)
fmt.Println("Installing Flowser...")
if err != nil {
panic(err)
}

location, err := app.Install("")
if err != nil {
panic(err)
}

fmt.Println("Flowser installed at:", location)
projectDir := os.Args[1]
fmt.Println("Running Flowser")
app.Run(installDir, projectDir)
}

0 comments on commit 7685fb2

Please sign in to comment.