Commit 4dc58448 authored by Adam Reese's avatar Adam Reese

ref(*) move lib code into pkg

parent 3aaf7752
......@@ -55,11 +55,11 @@ test-style:
@if [ $(shell gofmt -e -l -s $(GO_DIRS)) ]; then \
echo "gofmt check failed:"; gofmt -e -d -s $(GO_DIRS); exit 1; \
fi
@for i in . $(GO_DIRS); do \
@for i in $(GO_PKGS); do \
golint $$i; \
done
@for i in . $(GO_DIRS); do \
go vet github.com/deis/helm-dm/$$i; \
@for i in $(GO_DIRS); do \
go tool vet $$i; \
done
.PHONY: bootstrap \
......
......@@ -9,7 +9,7 @@ import (
"github.com/aokoli/goutils"
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/pkg/format"
"github.com/kubernetes/deployment-manager/chart"
)
......
......@@ -4,7 +4,7 @@ import (
"errors"
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/pkg/format"
)
func init() {
......
......@@ -5,9 +5,9 @@ import (
"os"
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/dm"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/kubectl"
"github.com/deis/helm-dm/pkg/dm"
"github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/pkg/kubectl"
)
// ErrAlreadyInstalled indicates that DM is already installed.
......
......@@ -2,9 +2,9 @@ package main
import (
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/dm"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/kubectl"
"github.com/deis/helm-dm/pkg/dm"
"github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/pkg/kubectl"
)
func init() {
......
......@@ -4,7 +4,7 @@ import (
"errors"
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/pkg/format"
)
func init() {
......
......@@ -4,8 +4,8 @@ import (
"os"
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/dm"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/pkg/dm"
"github.com/deis/helm-dm/pkg/format"
)
var version = "0.0.1"
......
......@@ -2,7 +2,7 @@ package main
import (
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/pkg/format"
)
func init() {
......
......@@ -6,7 +6,7 @@ import (
"os"
"github.com/codegangsta/cli"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/pkg/format"
"github.com/kubernetes/deployment-manager/chart"
)
......
......@@ -3,8 +3,8 @@ package main
import (
"fmt"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/kubectl"
"github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/pkg/kubectl"
)
func target(dryRun bool) error {
......
package dm
import (
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/kubectl"
"github.com/deis/helm-dm/pkg/format"
"github.com/deis/helm-dm/pkg/kubectl"
)
// Install uses kubectl to install the base DM.
......
package dm
import (
"github.com/deis/helm-dm/kubectl"
"github.com/deis/helm-dm/pkg/kubectl"
)
// Uninstall uses kubectl to uninstall the base DM.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment