mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-03 15:02:32 +02:00
Removed server
This commit is contained in:
parent
a6b51a1f40
commit
5cad22e3b3
11
Makefile
11
Makefile
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
package app
|
||||
package cli
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package app
|
||||
package cli
|
||||
|
||||
type Options struct {
|
||||
Cdp string
|
@ -1,4 +1,4 @@
|
||||
package app
|
||||
package cli
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package app
|
||||
package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
@ -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)
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user