Merge pull request #27 from adamreese/merge-prep

ref(*) move lib code into pkg
pull/291/head
Adam Reese 9 years ago
commit a88506e5d1

@ -55,11 +55,11 @@ test-style:
@if [ $(shell gofmt -e -l -s $(GO_DIRS)) ]; then \ @if [ $(shell gofmt -e -l -s $(GO_DIRS)) ]; then \
echo "gofmt check failed:"; gofmt -e -d -s $(GO_DIRS); exit 1; \ echo "gofmt check failed:"; gofmt -e -d -s $(GO_DIRS); exit 1; \
fi fi
@for i in . $(GO_DIRS); do \ @for i in $(GO_PKGS); do \
golint $$i; \ golint $$i; \
done done
@for i in . $(GO_DIRS); do \ @for i in $(GO_DIRS); do \
go vet github.com/deis/helm-dm/$$i; \ go tool vet $$i; \
done done
.PHONY: bootstrap \ .PHONY: bootstrap \

@ -9,7 +9,7 @@ import (
"github.com/aokoli/goutils" "github.com/aokoli/goutils"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
"github.com/kubernetes/deployment-manager/chart" "github.com/kubernetes/deployment-manager/chart"
) )

@ -4,7 +4,7 @@ import (
"errors" "errors"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
) )
func init() { func init() {

@ -5,9 +5,9 @@ import (
"os" "os"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/dm" "github.com/deis/helm-dm/pkg/dm"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/pkg/kubectl"
) )
// ErrAlreadyInstalled indicates that DM is already installed. // ErrAlreadyInstalled indicates that DM is already installed.

@ -2,9 +2,9 @@ package main
import ( import (
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/dm" "github.com/deis/helm-dm/pkg/dm"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/pkg/kubectl"
) )
func init() { func init() {

@ -4,7 +4,7 @@ import (
"errors" "errors"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
) )
func init() { func init() {

@ -4,8 +4,8 @@ import (
"os" "os"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/dm" "github.com/deis/helm-dm/pkg/dm"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
) )
var version = "0.0.1" var version = "0.0.1"

@ -2,7 +2,7 @@ package main
import ( import (
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
) )
func init() { func init() {

@ -6,7 +6,7 @@ import (
"os" "os"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
"github.com/kubernetes/deployment-manager/chart" "github.com/kubernetes/deployment-manager/chart"
) )

@ -3,8 +3,8 @@ package main
import ( import (
"fmt" "fmt"
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/pkg/kubectl"
) )
func target(dryRun bool) error { func target(dryRun bool) error {

@ -1,8 +1,8 @@
package dm package dm
import ( import (
"github.com/deis/helm-dm/format" "github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/pkg/kubectl"
) )
// Install uses kubectl to install the base DM. // Install uses kubectl to install the base DM.

@ -1,7 +1,7 @@
package dm package dm
import ( import (
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/pkg/kubectl"
) )
// Uninstall uses kubectl to uninstall the base DM. // Uninstall uses kubectl to uninstall the base DM.
Loading…
Cancel
Save