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
......@@ -19,14 +19,14 @@ import (
"log"
"os"
"github.com/ksonnet/ksonnet/pkg/clicmd"
"github.com/spf13/cobra/doc"
"github.com/ksonnet/ksonnet/cmd"
)
func main() {
outputDir := os.Args[1]
cmd := cmd.RootCmd
cmd := clicmd.RootCmd
// Remove auto-generated timestamps
cmd.DisableAutoGenTag = true
......
......@@ -20,7 +20,7 @@ import (
log "github.com/sirupsen/logrus"
"github.com/ksonnet/ksonnet/cmd"
"github.com/ksonnet/ksonnet/pkg/clicmd"
"github.com/ksonnet/ksonnet/pkg/kubecfg"
)
......@@ -29,10 +29,10 @@ var version = "(dev build)"
var apimachineryVersion = ""
func main() {
cmd.Version = version
cmd.APImachineryVersion = apimachineryVersion
clicmd.Version = version
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
// errors, like invalid command line flags.
logFmt := &log.TextFormatter{
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"github.com/ksonnet/ksonnet/actions"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"github.com/ksonnet/ksonnet/actions"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"testing"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"testing"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"testing"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"github.com/spf13/viper"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"testing"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"testing"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"fmt"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"testing"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"github.com/ksonnet/ksonnet/actions"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package clicmd
import (
"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