1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-03-03 15:02:32 +02:00

Removed server

This commit is contained in:
Tim Voronov 2018-09-25 21:49:42 -04:00
parent a6b51a1f40
commit 5cad22e3b3
7 changed files with 12 additions and 24 deletions

View File

@ -11,17 +11,10 @@ default: build
build: install vet generate test compile
compile: compile_cli compile_server
compile_cli:
compile:
go build -v -o ${DIR_BIN}/ferret \
-ldflags "-X main.Version=${VERSION}" \
${DIR_CMD}/cli/main.go
compile_server:
go build -v -o ${DIR_BIN}/ferret_server \
-ldflags "-X main.Version=${VERSION}" \
${DIR_CMD}/server/main.go
${DIR_CMD}/main.go
install:
dep ensure

View File

@ -1,4 +1,4 @@
package app
package cli
import (
"context"

View File

@ -1,4 +1,4 @@
package app
package cli
type Options struct {
Cdp string

View File

@ -1,4 +1,4 @@
package app
package cli
import (
"context"

View File

@ -1,4 +1,4 @@
package app
package cli
import (
"fmt"

View File

@ -1,10 +1,10 @@
package main
package cmd
import (
"bufio"
"flag"
"fmt"
"github.com/MontFerret/ferret/cmd/cli/app"
"github.com/MontFerret/ferret/cmd/cli"
"github.com/MontFerret/ferret/pkg/browser"
"io/ioutil"
"os"
@ -79,7 +79,7 @@ func main() {
defer b.Close()
}
opts := app.Options{
opts := cli.Options{
Cdp: cdpConn,
}
@ -97,16 +97,16 @@ func main() {
return
}
app.Exec(string(b), opts)
cli.Exec(string(b), opts)
return
}
// filename was passed
if flag.NArg() > 0 {
app.ExecFile(flag.Arg(0), opts)
cli.ExecFile(flag.Arg(0), opts)
return
}
// nothing was passed, run REPL
app.Repl(Version, opts)
cli.Repl(Version, opts)
}

View File

@ -1,5 +0,0 @@
package main
func main() {
}