diff --git a/api/drive/teamdrive.go b/api/drive/teamdrive.go index 6a68c1d..b5019bf 100644 --- a/api/drive/teamdrive.go +++ b/api/drive/teamdrive.go @@ -8,10 +8,7 @@ import ( ) func (a *Api) CreateTeamDrive(name string) (*drive.Drive, error) { - id, err := uuid.NewV4() - if err != nil { - return nil, err - } + id := uuid.NewV4() teamDrive, err := a.drive.Drives.Create(id.String(), &drive.Drive{ Name: name, diff --git a/cmd/assign/address/address.go b/cmd/assign/address/address.go index dc100ba..bb4db4b 100644 --- a/cmd/assign/address/address.go +++ b/cmd/assign/address/address.go @@ -1,21 +1,21 @@ package address import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/admin" "github.com/fionera/TeamDriveManager/api/drive" "github.com/fionera/TeamDriveManager/api/iam" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" ) func NewAssignAddressCmd() cli.Command { return cli.Command{ - Name: "address", - Usage: "Assign an address to a specified teamdrive", - Action: CmdAssignAddress, - Flags: []cli.Flag{}, + Name: "address", + Usage: "Assign an address to a specified teamdrive", + Action: CmdAssignAddress, + Flags: []cli.Flag{}, UsageText: "
", } } diff --git a/cmd/assign/assign.go b/cmd/assign/assign.go index 7e70efd..a3474dd 100644 --- a/cmd/assign/assign.go +++ b/cmd/assign/assign.go @@ -1,11 +1,11 @@ package group import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/cmd" assignAddress "github.com/fionera/TeamDriveManager/cmd/assign/address" assignGroup "github.com/fionera/TeamDriveManager/cmd/assign/group" assignServiceAccount "github.com/fionera/TeamDriveManager/cmd/assign/serviceaccount" + "github.com/urfave/cli" ) func init() { diff --git a/cmd/assign/group/group.go b/cmd/assign/group/group.go index 6a6deaa..0b11cad 100644 --- a/cmd/assign/group/group.go +++ b/cmd/assign/group/group.go @@ -3,12 +3,12 @@ package group import ( "crypto/sha256" "fmt" - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/admin" "github.com/fionera/TeamDriveManager/api/drive" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" drive2 "google.golang.org/api/drive/v3" "google.golang.org/api/googleapi" "gopkg.in/AlecAivazis/survey.v1" diff --git a/cmd/assign/serviceaccount/serviceaccount.go b/cmd/assign/serviceaccount/serviceaccount.go index 30fde62..3267e4a 100644 --- a/cmd/assign/serviceaccount/serviceaccount.go +++ b/cmd/assign/serviceaccount/serviceaccount.go @@ -1,12 +1,12 @@ package serviceaccount import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/admin" "github.com/fionera/TeamDriveManager/api/iam" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" gIAM "google.golang.org/api/iam/v1" "gopkg.in/AlecAivazis/survey.v1" "os" diff --git a/cmd/cmd.go b/cmd/cmd.go index 3119857..9275bae 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -1,9 +1,9 @@ package cmd import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "os" ) diff --git a/cmd/combinations/combinations.go b/cmd/combinations/combinations.go index 4e8a93f..91c4a85 100644 --- a/cmd/combinations/combinations.go +++ b/cmd/combinations/combinations.go @@ -1,8 +1,8 @@ package combinations import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/cmd" + "github.com/urfave/cli" ) func init() { diff --git a/cmd/combinations/project_accounts_keys.go b/cmd/combinations/project_accounts_keys.go index 0496e10..1bafb49 100644 --- a/cmd/combinations/project_accounts_keys.go +++ b/cmd/combinations/project_accounts_keys.go @@ -4,7 +4,6 @@ import ( "encoding/base64" "fmt" "github.com/Jeffail/gabs" - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/cloudresourcemanager" "github.com/fionera/TeamDriveManager/api/iam" @@ -12,6 +11,7 @@ import ( "github.com/fionera/TeamDriveManager/cmd/assign/serviceaccount" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "gopkg.in/AlecAivazis/survey.v1" "io/ioutil" "os" diff --git a/cmd/create/create.go b/cmd/create/create.go index 994da5d..eb8eb56 100644 --- a/cmd/create/create.go +++ b/cmd/create/create.go @@ -1,8 +1,8 @@ package create import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/cmd" + "github.com/urfave/cli" createGroup "github.com/fionera/TeamDriveManager/cmd/create/group" createProject "github.com/fionera/TeamDriveManager/cmd/create/project" diff --git a/cmd/create/group/group.go b/cmd/create/group/group.go index 4cb6211..e18749c 100644 --- a/cmd/create/group/group.go +++ b/cmd/create/group/group.go @@ -1,11 +1,11 @@ package project import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/admin" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "strings" ) diff --git a/cmd/create/project/project.go b/cmd/create/project/project.go index b72ddb9..1e6a805 100644 --- a/cmd/create/project/project.go +++ b/cmd/create/project/project.go @@ -1,12 +1,12 @@ package project import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/cloudresourcemanager" "github.com/fionera/TeamDriveManager/api/servicemanagement" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" ) func NewCommand() cli.Command { diff --git a/cmd/create/serviceaccount/serviceaccount.go b/cmd/create/serviceaccount/serviceaccount.go index b642389..e32ca6b 100644 --- a/cmd/create/serviceaccount/serviceaccount.go +++ b/cmd/create/serviceaccount/serviceaccount.go @@ -3,13 +3,13 @@ package serviceaccount import ( "encoding/base64" "github.com/Jeffail/gabs" - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/cloudresourcemanager" "github.com/fionera/TeamDriveManager/api/iam" "github.com/fionera/TeamDriveManager/api/servicemanagement" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "io/ioutil" "os" ) diff --git a/cmd/create/teamdrive/teamdrive.go b/cmd/create/teamdrive/teamdrive.go index 6e0a9a8..8737e60 100644 --- a/cmd/create/teamdrive/teamdrive.go +++ b/cmd/create/teamdrive/teamdrive.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/drive" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" ) func NewCommand() cli.Command { diff --git a/cmd/delete/delete.go b/cmd/delete/delete.go index a98e297..f58e136 100644 --- a/cmd/delete/delete.go +++ b/cmd/delete/delete.go @@ -1,10 +1,10 @@ package create import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/cmd" deleteProject "github.com/fionera/TeamDriveManager/cmd/delete/project" deleteServiceaccount "github.com/fionera/TeamDriveManager/cmd/delete/serviceaccount" + "github.com/urfave/cli" ) func init() { diff --git a/cmd/delete/project/project.go b/cmd/delete/project/project.go index ffba7cf..afd3afd 100644 --- a/cmd/delete/project/project.go +++ b/cmd/delete/project/project.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/cloudresourcemanager" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "gopkg.in/AlecAivazis/survey.v1" "strings" ) diff --git a/cmd/delete/serviceaccount/serviceaccount.go b/cmd/delete/serviceaccount/serviceaccount.go index 4fdea5f..9cfd040 100644 --- a/cmd/delete/serviceaccount/serviceaccount.go +++ b/cmd/delete/serviceaccount/serviceaccount.go @@ -1,13 +1,13 @@ package serviceaccount import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/cloudresourcemanager" "github.com/fionera/TeamDriveManager/api/iam" "github.com/fionera/TeamDriveManager/api/servicemanagement" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" iam2 "google.golang.org/api/iam/v1" "sync" ) diff --git a/cmd/list/group/group.go b/cmd/list/group/group.go index 2ee3ac1..aa18249 100644 --- a/cmd/list/group/group.go +++ b/cmd/list/group/group.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/admin" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "strings" ) diff --git a/cmd/list/list.go b/cmd/list/list.go index 33a62ed..856cd15 100644 --- a/cmd/list/list.go +++ b/cmd/list/list.go @@ -1,12 +1,12 @@ package create import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/cmd" listGroups "github.com/fionera/TeamDriveManager/cmd/list/group" listProjects "github.com/fionera/TeamDriveManager/cmd/list/project" listServiceAccounts "github.com/fionera/TeamDriveManager/cmd/list/serviceaccount" listTeamDrives "github.com/fionera/TeamDriveManager/cmd/list/teamdrive" + "github.com/urfave/cli" ) func init() { diff --git a/cmd/list/member/member.go b/cmd/list/member/member.go index 621c0b3..0ddaa0c 100644 --- a/cmd/list/member/member.go +++ b/cmd/list/member/member.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/admin" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" ) func NewCommand() cli.Command { diff --git a/cmd/list/project/project.go b/cmd/list/project/project.go index 58e53e9..8b45e1b 100644 --- a/cmd/list/project/project.go +++ b/cmd/list/project/project.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/cloudresourcemanager" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "strings" ) diff --git a/cmd/list/serviceaccount/serviceaccount.go b/cmd/list/serviceaccount/serviceaccount.go index 5665166..69d46c0 100644 --- a/cmd/list/serviceaccount/serviceaccount.go +++ b/cmd/list/serviceaccount/serviceaccount.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/iam" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" ) func NewCommand() cli.Command { diff --git a/cmd/list/teamdrive/teamdrive.go b/cmd/list/teamdrive/teamdrive.go index dffe39b..40d9140 100644 --- a/cmd/list/teamdrive/teamdrive.go +++ b/cmd/list/teamdrive/teamdrive.go @@ -1,11 +1,11 @@ package teamdrive import ( - "github.com/codegangsta/cli" "github.com/fionera/TeamDriveManager/api" "github.com/fionera/TeamDriveManager/api/drive" . "github.com/fionera/TeamDriveManager/config" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "gopkg.in/AlecAivazis/survey.v1" "strings" ) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..c5ff0e9 --- /dev/null +++ b/go.mod @@ -0,0 +1,15 @@ +module github.com/fionera/TeamDriveManager + +go 1.13 + +require ( + github.com/Jeffail/gabs v1.4.0 + github.com/mitchellh/go-homedir v1.1.0 + github.com/pkg/errors v0.8.1 + github.com/satori/go.uuid v1.2.0 + github.com/sirupsen/logrus v1.4.2 + github.com/urfave/cli v1.22.1 + golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 + google.golang.org/api v0.11.0 + gopkg.in/AlecAivazis/survey.v1 v1.8.7 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..f750ca6 --- /dev/null +++ b/go.sum @@ -0,0 +1,136 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0 h1:ROfEUZz+Gh5pa62DJWXSaonyu3StP6EA6lPEXPI6mCo= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/Jeffail/gabs v1.4.0 h1://5fYRRTq1edjfIrQGvdkcd22pkYUrHZ5YC/H2GJVAo= +github.com/Jeffail/gabs v1.4.0/go.mod h1:6xMvQMK4k33lb7GUUpaAPh6nKMmemQeg5d4gn7/bOXc= +github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8 h1:xzYJEypr/85nBpB11F9br+3HUrpgb+fcm5iADzXXYEw= +github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174 h1:WlZsjVhE8Af9IcZDGgJGQpNflI3+MJSBhsgT5PCtzBQ= +github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +go.opencensus.io v0.21.0 h1:mU6zScU4U1YAFPHEHYk+3JC4SY7JxgkqS10ZOSyksNg= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +golang.org/x/crypto v0.0.0-20190123085648-057139ce5d2b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c h1:uOCk1iQW6Vc18bnC13MfzScl+wdKBmM9Y9kU7Z83/lw= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180606202747-9527bec2660b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b h1:ag/x1USPSsqHud38I9BAC88qdNLDHHtQ4mlgQIZPPNA= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.11.0 h1:n/qM3q0/rV2F0pox7o0CvNhlPvZAo7pLbef122cbLJ0= +google.golang.org/api v0.11.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0 h1:KxkO13IPW4Lslp2bz+KHP2E3gtFlrIGNThxkZQ3g+4c= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873 h1:nfPFGzJkUDX6uBmpN/pSw7MbOAWegH5QDQuoXFHedLg= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1 h1:Hz2g2wirWK7H0qIIhGIqRGTuMwTE8HEKFnDZZ7lm9NU= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +gopkg.in/AlecAivazis/survey.v1 v1.8.7 h1:oBJqtgsyBLg9K5FK9twNUbcPnbCPoh+R9a+7nag3qJM= +gopkg.in/AlecAivazis/survey.v1 v1.8.7/go.mod h1:iBNOmqKz/NUbZx3bA+4hAGLRC7fSK7tgtVDT4tB22XA= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/main.go b/main.go index ec34a20..0af45f6 100644 --- a/main.go +++ b/main.go @@ -1,12 +1,12 @@ package main import ( - "github.com/codegangsta/cli" . "github.com/fionera/TeamDriveManager/cmd" _ "github.com/fionera/TeamDriveManager/cmd/all" "github.com/fionera/TeamDriveManager/config" "github.com/fionera/TeamDriveManager/setup" "github.com/sirupsen/logrus" + "github.com/urfave/cli" "gopkg.in/AlecAivazis/survey.v1" "os" )