Skip to content

Commit 58e8955

Browse files
author
dcb9
committed
Remove travis
1 parent 4bab12a commit 58e8955

File tree

13 files changed

+257
-38
lines changed

13 files changed

+257
-38
lines changed

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
travis-pages :
2-
go get github.com/gopherjs/gopherjs
3-
go get ./...
4-
go test ./...
5-
cd web && gopherjs build -m -o curl2httpie.js && rm main.go .gitignore
1+
deps :
2+
cd ../ \
3+
&& which go1.12.16 \
4+
|| (go get golang.org/dl/go1.12.16 && go1.12.16 download)
5+
which gopherjs || go get github.com/gopherjs/gopherjs
6+
7+
.PHONY: curl2httpie.js
8+
curl2httpie.js : deps
9+
GOPHERJS_GOROOT="/Users/bob/sdk/go1.12.16" gopherjs build -m -o web/curl2httpie.js ./cmd/curl2httpie.js
610

711
generateOptions :
812
go run cmd/generateOptions/main.go -path="$(path)"

web/main.go renamed to cmd/curl2httpie.js/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ package main
22

33
import (
44
"github.com/dcb9/curl2httpie/connector"
5+
"github.com/dcb9/curl2httpie/shellwords"
56
"github.com/gopherjs/gopherjs/js"
6-
"github.com/lmika/shellwords"
77
"regexp"
88
)
99

1010
var toOneLineReg = regexp.MustCompile(`[\\]{1}\W*\n`)
11+
1112
func Httpie(cmd string) map[string]interface{} {
1213
cmdBytes := toOneLineReg.ReplaceAll([]byte(cmd), nil)
13-
stringer, warnings, err := connector.Convert(shellwords.Split(string(cmdBytes)))
14+
stringer, warnings, err := connector.Convert(shellwords.New(string(cmdBytes)).Split())
1415
if err != nil {
1516
return map[string]interface{}{
1617
"cmd": "",

docs/.gitignore

Whitespace-only changes.

docs/curl2httpie.js

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/curl2httpie.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.15
44

55
require (
66
github.com/gopherjs/gopherjs v0.0.0-20210202160940-bed99a852dfe
7-
github.com/lmika/shellwords v0.0.0-20140714114018-ce258dd729fe
87
github.com/pkg/errors v0.9.1
98
github.com/spf13/pflag v1.0.5
109
)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
github.com/gopherjs/gopherjs v0.0.0-20210202160940-bed99a852dfe h1:rcf1P0fm+1l0EjG16p06mYLj9gW9X36KgdHJ/88hS4g=
22
github.com/gopherjs/gopherjs v0.0.0-20210202160940-bed99a852dfe/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
3-
github.com/lmika/shellwords v0.0.0-20140714114018-ce258dd729fe h1:1UXS/6OFkbi6JrihPykmYO1VtsABB02QQ+YmYYzTY18=
4-
github.com/lmika/shellwords v0.0.0-20140714114018-ce258dd729fe/go.mod h1:qpdOkLougV5Yry4Px9f1w1pNMavcr6Z67VW5Ro+vW5I=
53
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
64
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
75
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=

0 commit comments

Comments
 (0)