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

ref(*) move lib code into pkg

parent 3aaf7752
...@@ -55,11 +55,11 @@ test-style: ...@@ -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 ( ...@@ -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 ( ...@@ -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 ( ...@@ -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 ...@@ -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 ( ...@@ -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 ( ...@@ -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 ...@@ -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 ( ...@@ -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 ...@@ -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 {
......
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.
......
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.
......
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