Skip to content

Commit 1abb4f7

Browse files
committed
fix lint issues and rename Initialize to Create in proto file
Signed-off-by: Ansuman Sahoo <anshumansahoo500@gmail.com>
1 parent 1b94225 commit 1abb4f7

File tree

103 files changed

+277
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+277
-184
lines changed

cmd/limactl/clone.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"os"
1010
"path/filepath"
1111

12+
"github.com/spf13/cobra"
13+
1214
"github.com/lima-vm/lima/v2/cmd/limactl/editflags"
1315
"github.com/lima-vm/lima/v2/pkg/driverutil"
1416
"github.com/lima-vm/lima/v2/pkg/instance"
@@ -17,7 +19,6 @@ import (
1719
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
1820
"github.com/lima-vm/lima/v2/pkg/store"
1921
"github.com/lima-vm/lima/v2/pkg/yqutil"
20-
"github.com/spf13/cobra"
2122
)
2223

2324
func newCloneCommand() *cobra.Command {

cmd/limactl/completion.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import (
99
"slices"
1010
"strings"
1111

12+
"github.com/spf13/cobra"
13+
1214
"github.com/lima-vm/lima/v2/pkg/networks"
1315
"github.com/lima-vm/lima/v2/pkg/store"
1416
"github.com/lima-vm/lima/v2/pkg/templatestore"
15-
"github.com/spf13/cobra"
1617
)
1718

1819
func bashCompleteInstanceNames(_ *cobra.Command) ([]string, cobra.ShellCompDirective) {

cmd/limactl/copy.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import (
1313
"strings"
1414

1515
"github.com/coreos/go-semver/semver"
16+
"github.com/sirupsen/logrus"
17+
"github.com/spf13/cobra"
18+
1619
"github.com/lima-vm/lima/v2/pkg/ioutilx"
1720
"github.com/lima-vm/lima/v2/pkg/limatype"
1821
"github.com/lima-vm/lima/v2/pkg/sshutil"
1922
"github.com/lima-vm/lima/v2/pkg/store"
20-
"github.com/sirupsen/logrus"
21-
"github.com/spf13/cobra"
2223
)
2324

2425
const copyHelp = `Copy files between host and guest

cmd/limactl/debug.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import (
77
"strconv"
88
"time"
99

10-
"github.com/lima-vm/lima/v2/pkg/hostagent/dns"
1110
"github.com/sirupsen/logrus"
1211
"github.com/spf13/cobra"
12+
13+
"github.com/lima-vm/lima/v2/pkg/hostagent/dns"
1314
)
1415

1516
func newDebugCommand() *cobra.Command {

cmd/limactl/delete.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import (
99
"os"
1010
"runtime"
1111

12+
"github.com/sirupsen/logrus"
13+
"github.com/spf13/cobra"
14+
1215
"github.com/lima-vm/lima/v2/pkg/autostart"
1316
"github.com/lima-vm/lima/v2/pkg/instance"
1417
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
1518
"github.com/lima-vm/lima/v2/pkg/store"
16-
"github.com/sirupsen/logrus"
17-
"github.com/spf13/cobra"
1819
)
1920

2021
func newDeleteCommand() *cobra.Command {

cmd/limactl/disk.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ import (
1515
contfs "github.com/containerd/continuity/fs"
1616
"github.com/docker/go-units"
1717
"github.com/lima-vm/go-qcow2reader"
18+
"github.com/sirupsen/logrus"
19+
"github.com/spf13/cobra"
20+
1821
"github.com/lima-vm/lima/v2/pkg/imgutil/proxyimgutil"
1922
"github.com/lima-vm/lima/v2/pkg/limatype"
2023
"github.com/lima-vm/lima/v2/pkg/limatype/filenames"
2124
"github.com/lima-vm/lima/v2/pkg/store"
22-
"github.com/sirupsen/logrus"
23-
"github.com/spf13/cobra"
2425
)
2526

2627
func newDiskCommand() *cobra.Command {

cmd/limactl/edit.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import (
1010
"os"
1111
"path/filepath"
1212

13+
"github.com/sirupsen/logrus"
14+
"github.com/spf13/cobra"
15+
1316
"github.com/lima-vm/lima/v2/cmd/limactl/editflags"
1417
"github.com/lima-vm/lima/v2/pkg/driverutil"
1518
"github.com/lima-vm/lima/v2/pkg/editutil"
@@ -22,8 +25,6 @@ import (
2225
"github.com/lima-vm/lima/v2/pkg/store"
2326
"github.com/lima-vm/lima/v2/pkg/uiutil"
2427
"github.com/lima-vm/lima/v2/pkg/yqutil"
25-
"github.com/sirupsen/logrus"
26-
"github.com/spf13/cobra"
2728
)
2829

2930
func newEditCommand() *cobra.Command {

cmd/limactl/editflags/editflags.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ import (
1111
"strconv"
1212
"strings"
1313

14-
"github.com/lima-vm/lima/v2/pkg/registry"
1514
"github.com/pbnjay/memory"
1615
"github.com/sirupsen/logrus"
1716
"github.com/spf13/cobra"
1817
flag "github.com/spf13/pflag"
18+
19+
"github.com/lima-vm/lima/v2/pkg/registry"
1920
)
2021

2122
// RegisterEdit registers flags related to in-place YAML modification, for `limactl edit`.

cmd/limactl/factory-reset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import (
99
"path/filepath"
1010
"strings"
1111

12+
"github.com/sirupsen/logrus"
13+
"github.com/spf13/cobra"
14+
1215
"github.com/lima-vm/lima/v2/pkg/cidata"
1316
"github.com/lima-vm/lima/v2/pkg/instance"
1417
"github.com/lima-vm/lima/v2/pkg/limatype/filenames"
1518
"github.com/lima-vm/lima/v2/pkg/store"
16-
"github.com/sirupsen/logrus"
17-
"github.com/spf13/cobra"
1819
)
1920

2021
func newFactoryResetCommand() *cobra.Command {

cmd/limactl/genschema.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import (
1010
"os"
1111

1212
"github.com/invopop/jsonschema"
13-
"github.com/lima-vm/lima/v2/pkg/jsonschemautil"
14-
"github.com/lima-vm/lima/v2/pkg/limatype"
1513
"github.com/sirupsen/logrus"
1614
"github.com/spf13/cobra"
1715
orderedmap "github.com/wk8/go-ordered-map/v2"
16+
17+
"github.com/lima-vm/lima/v2/pkg/jsonschemautil"
18+
"github.com/lima-vm/lima/v2/pkg/limatype"
1819
)
1920

2021
func newGenSchemaCommand() *cobra.Command {

0 commit comments

Comments
 (0)