Unverified Commit 0eebe49c authored by bryanl's avatar bryanl
Browse files

move cmd to pkg/clicmd


Signed-off-by: default avatarbryanl <bryanliles@gmail.com>
parent e59d8a6b
...@@ -17,16 +17,16 @@ package main ...@@ -17,16 +17,16 @@ package main
import ( import (
"log" "log"
"os" "os"
"github.com/ksonnet/ksonnet/pkg/clicmd"
"github.com/spf13/cobra/doc" "github.com/spf13/cobra/doc"
"github.com/ksonnet/ksonnet/cmd"
) )
func main() { func main() {
outputDir := os.Args[1] outputDir := os.Args[1]
cmd := cmd.RootCmd cmd := clicmd.RootCmd
// Remove auto-generated timestamps // Remove auto-generated timestamps
cmd.DisableAutoGenTag = true cmd.DisableAutoGenTag = true
......
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/ksonnet/ksonnet/cmd" "github.com/ksonnet/ksonnet/pkg/clicmd"
"github.com/ksonnet/ksonnet/pkg/kubecfg" "github.com/ksonnet/ksonnet/pkg/kubecfg"
) )
...@@ -29,10 +29,10 @@ var version = "(dev build)" ...@@ -29,10 +29,10 @@ var version = "(dev build)"
var apimachineryVersion = "" var apimachineryVersion = ""
func main() { func main() {
cmd.Version = version clicmd.Version = version
cmd.APImachineryVersion = apimachineryVersion clicmd.APImachineryVersion = apimachineryVersion
if err := cmd.RootCmd.Execute(); err != nil { if err := clicmd.RootCmd.Execute(); err != nil {
// PersistentPreRunE may not have been run for early // PersistentPreRunE may not have been run for early
// errors, like invalid command line flags. // errors, like invalid command line flags.
logFmt := &log.TextFormatter{ logFmt := &log.TextFormatter{
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"github.com/ksonnet/ksonnet/actions" "github.com/ksonnet/ksonnet/actions"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"github.com/ksonnet/ksonnet/actions" "github.com/ksonnet/ksonnet/actions"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"github.com/spf13/viper" "github.com/spf13/viper"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"fmt" "fmt"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"github.com/ksonnet/ksonnet/actions" "github.com/ksonnet/ksonnet/actions"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package cmd package clicmd
import ( import (
"testing" "testing"
......
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