Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 1eba794

Browse files
committed
Add go.mod
1 parent dd3cbd3 commit 1eba794

File tree

25 files changed

+178
-30
lines changed

25 files changed

+178
-30
lines changed

api/drive/teamdrive.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ import (
88
)
99

1010
func (a *Api) CreateTeamDrive(name string) (*drive.Drive, error) {
11-
id, err := uuid.NewV4()
12-
if err != nil {
13-
return nil, err
14-
}
11+
id := uuid.NewV4()
1512

1613
teamDrive, err := a.drive.Drives.Create(id.String(), &drive.Drive{
1714
Name: name,

cmd/assign/address/address.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
package address
22

33
import (
4-
"github.com/codegangsta/cli"
54
"github.com/fionera/TeamDriveManager/api"
65
"github.com/fionera/TeamDriveManager/api/admin"
76
"github.com/fionera/TeamDriveManager/api/drive"
87
"github.com/fionera/TeamDriveManager/api/iam"
98
. "github.com/fionera/TeamDriveManager/config"
109
"github.com/sirupsen/logrus"
10+
"github.com/urfave/cli"
1111
)
1212

1313
func NewAssignAddressCmd() cli.Command {
1414
return cli.Command{
15-
Name: "address",
16-
Usage: "Assign an address to a specified teamdrive",
17-
Action: CmdAssignAddress,
18-
Flags: []cli.Flag{},
15+
Name: "address",
16+
Usage: "Assign an address to a specified teamdrive",
17+
Action: CmdAssignAddress,
18+
Flags: []cli.Flag{},
1919
UsageText: "<TEAMDRIVE> <ADDRESS>",
2020
}
2121
}

cmd/assign/assign.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package group
22

33
import (
4-
"github.com/codegangsta/cli"
54
. "github.com/fionera/TeamDriveManager/cmd"
65
assignAddress "github.com/fionera/TeamDriveManager/cmd/assign/address"
76
assignGroup "github.com/fionera/TeamDriveManager/cmd/assign/group"
87
assignServiceAccount "github.com/fionera/TeamDriveManager/cmd/assign/serviceaccount"
8+
"github.com/urfave/cli"
99
)
1010

1111
func init() {

cmd/assign/group/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package group
33
import (
44
"crypto/sha256"
55
"fmt"
6-
"github.com/codegangsta/cli"
76
"github.com/fionera/TeamDriveManager/api"
87
"github.com/fionera/TeamDriveManager/api/admin"
98
"github.com/fionera/TeamDriveManager/api/drive"
109
. "github.com/fionera/TeamDriveManager/config"
1110
"github.com/sirupsen/logrus"
11+
"github.com/urfave/cli"
1212
drive2 "google.golang.org/api/drive/v3"
1313
"google.golang.org/api/googleapi"
1414
"gopkg.in/AlecAivazis/survey.v1"

cmd/assign/serviceaccount/serviceaccount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package serviceaccount
22

33
import (
4-
"github.com/codegangsta/cli"
54
"github.com/fionera/TeamDriveManager/api"
65
"github.com/fionera/TeamDriveManager/api/admin"
76
"github.com/fionera/TeamDriveManager/api/iam"
87
. "github.com/fionera/TeamDriveManager/config"
98
"github.com/sirupsen/logrus"
9+
"github.com/urfave/cli"
1010
gIAM "google.golang.org/api/iam/v1"
1111
"gopkg.in/AlecAivazis/survey.v1"
1212
"os"

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package cmd
22

33
import (
4-
"github.com/codegangsta/cli"
54
. "github.com/fionera/TeamDriveManager/config"
65
"github.com/sirupsen/logrus"
6+
"github.com/urfave/cli"
77
"os"
88
)
99

cmd/combinations/combinations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package combinations
22

33
import (
4-
"github.com/codegangsta/cli"
54
. "github.com/fionera/TeamDriveManager/cmd"
5+
"github.com/urfave/cli"
66
)
77

88
func init() {

cmd/combinations/project_accounts_keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import (
44
"encoding/base64"
55
"fmt"
66
"github.com/Jeffail/gabs"
7-
"github.com/codegangsta/cli"
87
"github.com/fionera/TeamDriveManager/api"
98
"github.com/fionera/TeamDriveManager/api/cloudresourcemanager"
109
"github.com/fionera/TeamDriveManager/api/iam"
1110
"github.com/fionera/TeamDriveManager/api/servicemanagement"
1211
"github.com/fionera/TeamDriveManager/cmd/assign/serviceaccount"
1312
. "github.com/fionera/TeamDriveManager/config"
1413
"github.com/sirupsen/logrus"
14+
"github.com/urfave/cli"
1515
"gopkg.in/AlecAivazis/survey.v1"
1616
"io/ioutil"
1717
"os"

cmd/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package create
22

33
import (
4-
"github.com/codegangsta/cli"
54
. "github.com/fionera/TeamDriveManager/cmd"
5+
"github.com/urfave/cli"
66

77
createGroup "github.com/fionera/TeamDriveManager/cmd/create/group"
88
createProject "github.com/fionera/TeamDriveManager/cmd/create/project"

cmd/create/group/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package project
22

33
import (
4-
"github.com/codegangsta/cli"
54
"github.com/fionera/TeamDriveManager/api"
65
"github.com/fionera/TeamDriveManager/api/admin"
76
. "github.com/fionera/TeamDriveManager/config"
87
"github.com/sirupsen/logrus"
8+
"github.com/urfave/cli"
99
"strings"
1010
)
1111

0 commit comments

Comments
 (0)