Skip to content

Commit

Permalink
[misc] reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
shmel1k committed Jul 6, 2024
1 parent 183037d commit fc92613
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions cmd/maintenance/create/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package create

import (
"github.com/spf13/pflag"

"github.com/ydb-platform/ydbops/pkg/rolling"
)

Expand Down
1 change: 1 addition & 0 deletions cmd/maintenance/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package maintenance

import (
"github.com/spf13/cobra"

"github.com/ydb-platform/ydbops/cmd/maintenance/complete"
"github.com/ydb-platform/ydbops/cmd/maintenance/create"
"github.com/ydb-platform/ydbops/cmd/maintenance/drop"
Expand Down
1 change: 1 addition & 0 deletions cmd/restart/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package restart

import (
"github.com/spf13/pflag"

"github.com/ydb-platform/ydbops/pkg/rolling"
)

Expand Down
1 change: 1 addition & 0 deletions cmd/run/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"

"github.com/spf13/pflag"

"github.com/ydb-platform/ydbops/pkg/rolling"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"fmt"

"github.com/spf13/cobra"
"go.uber.org/zap"

"github.com/ydb-platform/ydbops/pkg/cli"
"github.com/ydb-platform/ydbops/pkg/cmdutil"
"github.com/ydb-platform/ydbops/pkg/command"
"github.com/ydb-platform/ydbops/pkg/options"
"github.com/ydb-platform/ydbops/pkg/rolling"
"github.com/ydb-platform/ydbops/pkg/rolling/restarters"
"go.uber.org/zap"
)

var RunCommandDescription = command.NewDescription(
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package main
import (
"os"

"go.uber.org/zap"
"go.uber.org/zap/zapcore"

"github.com/ydb-platform/ydbops/cmd"
"github.com/ydb-platform/ydbops/pkg/client/auth/credentials"
"github.com/ydb-platform/ydbops/pkg/client/cms"
Expand All @@ -11,8 +14,6 @@ import (
"github.com/ydb-platform/ydbops/pkg/cmdutil"
"github.com/ydb-platform/ydbops/pkg/command"
"github.com/ydb-platform/ydbops/pkg/options"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)

func createLogger(level string) (zap.AtomicLevel, *zap.Logger) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/client/auth/credentials/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"fmt"
"sync"

"go.uber.org/zap"

"github.com/ydb-platform/ydbops/pkg/client/connectionsfactory"
"github.com/ydb-platform/ydbops/pkg/command"
"github.com/ydb-platform/ydbops/pkg/options"
"go.uber.org/zap"
)

type Provider interface {
Expand Down
5 changes: 3 additions & 2 deletions pkg/client/auth/credentials/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"sync"

"github.com/ydb-platform/ydbops/pkg/client/auth"
"github.com/ydb-platform/ydbops/pkg/client/connectionsfactory"
"go.uber.org/zap"
"google.golang.org/grpc/metadata"

"github.com/ydb-platform/ydbops/pkg/client/auth"
"github.com/ydb-platform/ydbops/pkg/client/connectionsfactory"
)

type staticCredentialsProvider struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/client/cms/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/ydb-platform/ydb-go-genproto/draft/Ydb_Maintenance_V1"
"github.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance"

"github.com/ydb-platform/ydbops/pkg/client"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/client/connectionsfactory/connections_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"os"
"time"

"github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Operations"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/protobuf/types/known/durationpb"

"github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Operations"
"github.com/ydb-platform/ydbops/pkg/command"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"path/filepath"

"github.com/spf13/pflag"

"github.com/ydb-platform/ydbops/pkg/options"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/options/options_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/ydb-platform/ydbops/pkg/utils"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/prettyprint/prettyprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"

"github.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance"

"github.com/ydb-platform/ydbops/pkg/client/cms"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/rolling/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import (

"github.com/spf13/pflag"
"github.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance"
"google.golang.org/protobuf/types/known/durationpb"

"github.com/ydb-platform/ydbops/internal/collections"
"github.com/ydb-platform/ydbops/pkg/options"
"github.com/ydb-platform/ydbops/pkg/profile"
"github.com/ydb-platform/ydbops/pkg/utils"
"google.golang.org/protobuf/types/known/durationpb"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"github.com/ydb-platform/ydb-go-genproto/protos/Ydb"
"github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Issue"
"github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Operations"
"github.com/ydb-platform/ydbops/internal/collections"
"go.uber.org/zap"

"github.com/ydb-platform/ydbops/internal/collections"
)

func LogOperation(logger *zap.SugaredLogger, op *Ydb_Operations.Operation) {
Expand Down

0 comments on commit fc92613

Please sign in to comment.