Skip to content

Commit

Permalink
remove most of cmd; change things to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
rogpeppe committed Jun 13, 2014
1 parent e620534 commit 6337964
Show file tree
Hide file tree
Showing 140 changed files with 174 additions and 2,730 deletions.
59 changes: 0 additions & 59 deletions cmd/args.go

This file was deleted.

174 changes: 0 additions & 174 deletions cmd/args_test.go

This file was deleted.

3 changes: 1 addition & 2 deletions cmd/charm-admin/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import (
"fmt"

"github.com/juju/charmstore"
"github.com/juju/cmd"
"launchpad.net/gnuflag"

"github.com/juju/juju/cmd"
)

// ConfigCommand defines a command which requires a YAML config file.
Expand Down
2 changes: 1 addition & 1 deletion cmd/charm-admin/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"path"

"github.com/juju/cmd"
gc "launchpad.net/gocheck"

"github.com/juju/juju/cmd"
"github.com/juju/juju/testing"
)

Expand Down
3 changes: 1 addition & 2 deletions cmd/charm-admin/deletecharm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import (

"github.com/juju/charm"
"github.com/juju/charmstore"
"github.com/juju/cmd"
"launchpad.net/gnuflag"

"github.com/juju/juju/cmd"
)

type DeleteCharmCommand struct {
Expand Down
7 changes: 4 additions & 3 deletions cmd/charm-admin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import (
"fmt"
"os"

"github.com/juju/juju/cmd"
"github.com/juju/cmd"

jujucmd "github.com/juju/juju/cmd"
)

func main() {
Expand All @@ -17,9 +19,8 @@ func main() {
os.Exit(2)
}

admcmd := cmd.NewSuperCommand(cmd.SuperCommandParams{
admcmd := jujucmd.NewSuperCommand(cmd.SuperCommandParams{
Name: "charm-admin",
Log: &cmd.Log{},
})

admcmd.Register(&DeleteCharmCommand{})
Expand Down
Loading

0 comments on commit 6337964

Please sign in to comment.