Skip to content

Commit

Permalink
cmd/ctr/app: remove redundant package name
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen J Day <[email protected]>
  • Loading branch information
stevvooe committed Mar 22, 2018
1 parent 4c8bbb5 commit 903ee88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/ctr/command/main.go → cmd/ctr/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
*/

package command
package app

import (
"fmt"
Expand Down Expand Up @@ -51,8 +51,8 @@ func init() {
}
}

// App returns a *cli.App instance.
func App() *cli.App {
// New returns a *cli.App instance.
func New() *cli.App {
app := cli.NewApp()
app.Name = "ctr"
app.Version = version.Version
Expand Down
2 changes: 1 addition & 1 deletion cmd/ctr/command/main_unix.go → cmd/ctr/app/main_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/

package command
package app

import "github.com/containerd/containerd/cmd/ctr/commands/shim"

Expand Down
4 changes: 2 additions & 2 deletions cmd/ctr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ import (
"fmt"
"os"

"github.com/containerd/containerd/cmd/ctr/command"
"github.com/containerd/containerd/cmd/ctr/app"
"github.com/urfave/cli"
)

var pluginCmds = []cli.Command{}

func main() {
app := command.App()
app := app.New()
app.Commands = append(app.Commands, pluginCmds...)
if err := app.Run(os.Args); err != nil {
fmt.Fprintf(os.Stderr, "ctr: %s\n", err)
Expand Down

0 comments on commit 903ee88

Please sign in to comment.