diff --git a/etcdctl/ctlv2/command/auth_commands.go b/etcdctl/ctlv2/command/auth_commands.go index cf4ebbde3..d0bef6490 100644 --- a/etcdctl/ctlv2/command/auth_commands.go +++ b/etcdctl/ctlv2/command/auth_commands.go @@ -19,8 +19,8 @@ import ( "os" "strings" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) func NewAuthCommands() cli.Command { diff --git a/etcdctl/ctlv2/command/backup_command.go b/etcdctl/ctlv2/command/backup_command.go index 67414d285..9f6beaa48 100644 --- a/etcdctl/ctlv2/command/backup_command.go +++ b/etcdctl/ctlv2/command/backup_command.go @@ -21,13 +21,13 @@ import ( "path" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/etcdserver/etcdserverpb" "github.com/coreos/etcd/pkg/idutil" "github.com/coreos/etcd/pkg/pbutil" "github.com/coreos/etcd/snap" "github.com/coreos/etcd/wal" "github.com/coreos/etcd/wal/walpb" + "github.com/urfave/cli" ) func NewBackupCommand() cli.Command { diff --git a/etcdctl/ctlv2/command/cluster_health.go b/etcdctl/ctlv2/command/cluster_health.go index 8ccba7eba..f80d1e2c6 100644 --- a/etcdctl/ctlv2/command/cluster_health.go +++ b/etcdctl/ctlv2/command/cluster_health.go @@ -23,8 +23,8 @@ import ( "os/signal" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" "golang.org/x/net/context" ) diff --git a/etcdctl/ctlv2/command/exec_watch_command.go b/etcdctl/ctlv2/command/exec_watch_command.go index e26eb5982..cf2814c40 100644 --- a/etcdctl/ctlv2/command/exec_watch_command.go +++ b/etcdctl/ctlv2/command/exec_watch_command.go @@ -21,8 +21,8 @@ import ( "os/exec" "os/signal" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" "golang.org/x/net/context" ) diff --git a/etcdctl/ctlv2/command/get_command.go b/etcdctl/ctlv2/command/get_command.go index 34e241e9d..04bdee5a3 100644 --- a/etcdctl/ctlv2/command/get_command.go +++ b/etcdctl/ctlv2/command/get_command.go @@ -19,8 +19,8 @@ import ( "fmt" "os" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewGetCommand returns the CLI command for "get". diff --git a/etcdctl/ctlv2/command/import_snap_command.go b/etcdctl/ctlv2/command/import_snap_command.go index 81495df21..5f1d9cd47 100644 --- a/etcdctl/ctlv2/command/import_snap_command.go +++ b/etcdctl/ctlv2/command/import_snap_command.go @@ -22,9 +22,9 @@ import ( "sync" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" "github.com/coreos/etcd/store" + "github.com/urfave/cli" "golang.org/x/net/context" ) diff --git a/etcdctl/ctlv2/command/ls_command.go b/etcdctl/ctlv2/command/ls_command.go index fd3a2de49..044f3218a 100644 --- a/etcdctl/ctlv2/command/ls_command.go +++ b/etcdctl/ctlv2/command/ls_command.go @@ -17,8 +17,8 @@ package command import ( "fmt" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) func NewLsCommand() cli.Command { diff --git a/etcdctl/ctlv2/command/member_commands.go b/etcdctl/ctlv2/command/member_commands.go index 20d54521f..7362b1d2a 100644 --- a/etcdctl/ctlv2/command/member_commands.go +++ b/etcdctl/ctlv2/command/member_commands.go @@ -19,7 +19,7 @@ import ( "os" "strings" - "github.com/codegangsta/cli" + "github.com/urfave/cli" ) func NewMemberCommand() cli.Command { diff --git a/etcdctl/ctlv2/command/mk_command.go b/etcdctl/ctlv2/command/mk_command.go index e989a15dc..d915e45b2 100644 --- a/etcdctl/ctlv2/command/mk_command.go +++ b/etcdctl/ctlv2/command/mk_command.go @@ -19,8 +19,8 @@ import ( "os" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewMakeCommand returns the CLI command for "mk". diff --git a/etcdctl/ctlv2/command/mkdir_command.go b/etcdctl/ctlv2/command/mkdir_command.go index 25d7f4b22..86a410652 100644 --- a/etcdctl/ctlv2/command/mkdir_command.go +++ b/etcdctl/ctlv2/command/mkdir_command.go @@ -18,8 +18,8 @@ import ( "errors" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewMakeDirCommand returns the CLI command for "mkdir". diff --git a/etcdctl/ctlv2/command/rm_command.go b/etcdctl/ctlv2/command/rm_command.go index 58746f571..6e4ab119d 100644 --- a/etcdctl/ctlv2/command/rm_command.go +++ b/etcdctl/ctlv2/command/rm_command.go @@ -17,8 +17,8 @@ package command import ( "errors" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewRemoveCommand returns the CLI command for "rm". diff --git a/etcdctl/ctlv2/command/rmdir_command.go b/etcdctl/ctlv2/command/rmdir_command.go index 37c3a8e21..62800bb8f 100644 --- a/etcdctl/ctlv2/command/rmdir_command.go +++ b/etcdctl/ctlv2/command/rmdir_command.go @@ -17,8 +17,8 @@ package command import ( "errors" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewRemoveDirCommand returns the CLI command for "rmdir". diff --git a/etcdctl/ctlv2/command/role_commands.go b/etcdctl/ctlv2/command/role_commands.go index 09880f8ea..0c3bab7dc 100644 --- a/etcdctl/ctlv2/command/role_commands.go +++ b/etcdctl/ctlv2/command/role_commands.go @@ -20,9 +20,9 @@ import ( "reflect" "strings" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" "github.com/coreos/etcd/pkg/pathutil" + "github.com/urfave/cli" ) func NewRoleCommands() cli.Command { diff --git a/etcdctl/ctlv2/command/set_command.go b/etcdctl/ctlv2/command/set_command.go index b1d7a7286..807d73e2c 100644 --- a/etcdctl/ctlv2/command/set_command.go +++ b/etcdctl/ctlv2/command/set_command.go @@ -19,8 +19,8 @@ import ( "os" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewSetCommand returns the CLI command for "set". diff --git a/etcdctl/ctlv2/command/set_dir_command.go b/etcdctl/ctlv2/command/set_dir_command.go index 01590aad3..8d743d313 100644 --- a/etcdctl/ctlv2/command/set_dir_command.go +++ b/etcdctl/ctlv2/command/set_dir_command.go @@ -15,8 +15,8 @@ package command import ( - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewSetDirCommand returns the CLI command for "setDir". diff --git a/etcdctl/ctlv2/command/update_command.go b/etcdctl/ctlv2/command/update_command.go index a2d47b404..c6e7d2bd6 100644 --- a/etcdctl/ctlv2/command/update_command.go +++ b/etcdctl/ctlv2/command/update_command.go @@ -19,8 +19,8 @@ import ( "os" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewUpdateCommand returns the CLI command for "update". diff --git a/etcdctl/ctlv2/command/update_dir_command.go b/etcdctl/ctlv2/command/update_dir_command.go index 5a4149627..34c0093f1 100644 --- a/etcdctl/ctlv2/command/update_dir_command.go +++ b/etcdctl/ctlv2/command/update_dir_command.go @@ -18,8 +18,8 @@ import ( "errors" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) // NewUpdateDirCommand returns the CLI command for "updatedir". diff --git a/etcdctl/ctlv2/command/user_commands.go b/etcdctl/ctlv2/command/user_commands.go index 1baa30b30..f385ff34a 100644 --- a/etcdctl/ctlv2/command/user_commands.go +++ b/etcdctl/ctlv2/command/user_commands.go @@ -20,8 +20,8 @@ import ( "strings" "github.com/bgentry/speakeasy" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" ) func NewUserCommands() cli.Command { diff --git a/etcdctl/ctlv2/command/util.go b/etcdctl/ctlv2/command/util.go index 7b0c2f16b..2f5c169d7 100644 --- a/etcdctl/ctlv2/command/util.go +++ b/etcdctl/ctlv2/command/util.go @@ -28,9 +28,9 @@ import ( "time" "github.com/bgentry/speakeasy" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" "github.com/coreos/etcd/pkg/transport" + "github.com/urfave/cli" "golang.org/x/net/context" ) diff --git a/etcdctl/ctlv2/command/watch_command.go b/etcdctl/ctlv2/command/watch_command.go index 3c5f66a4e..cc1fc31c5 100644 --- a/etcdctl/ctlv2/command/watch_command.go +++ b/etcdctl/ctlv2/command/watch_command.go @@ -20,8 +20,8 @@ import ( "os" "os/signal" - "github.com/codegangsta/cli" "github.com/coreos/etcd/client" + "github.com/urfave/cli" "golang.org/x/net/context" ) diff --git a/etcdctl/ctlv2/ctl.go b/etcdctl/ctlv2/ctl.go index 8018d40a2..3ec767c3f 100644 --- a/etcdctl/ctlv2/ctl.go +++ b/etcdctl/ctlv2/ctl.go @@ -20,9 +20,9 @@ import ( "os" "time" - "github.com/codegangsta/cli" "github.com/coreos/etcd/etcdctl/ctlv2/command" "github.com/coreos/etcd/version" + "github.com/urfave/cli" ) func Start() { @@ -71,5 +71,9 @@ func Start() { command.NewAuthCommands(), } - app.Run(os.Args) + err := app.Run(os.Args) + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } }