Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Oct 8, 2024
1 parent 3bbc636 commit 4b8d86b
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 15 deletions.
3 changes: 2 additions & 1 deletion cmd/nodecmd/create_devnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import (
_ "embed"
"encoding/json"
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"path/filepath"
"strconv"
"strings"
"sync"
"time"

"github.com/ava-labs/avalanche-cli/pkg/node"

"golang.org/x/exp/slices"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
Expand Down
1 change: 1 addition & 0 deletions cmd/nodecmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package nodecmd

import (
"fmt"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/cmd/blockchaincmd"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package nodecmd
import (
"errors"
"fmt"
nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"strings"

nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"

awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws"
gcpAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/gcp"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
1 change: 1 addition & 0 deletions cmd/nodecmd/dynamic_ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package nodecmd
import (
"context"
"fmt"

nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"

awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ package nodecmd

import (
"encoding/json"
"github.com/ava-labs/avalanche-cli/pkg/node"
"io"
"os"
"path/filepath"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
"github.com/ava-labs/avalanche-cli/pkg/constants"
"github.com/ava-labs/avalanche-cli/pkg/models"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package nodecmd
import (
"encoding/json"
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"io"
"os"
"path/filepath"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
"github.com/ava-labs/avalanche-cli/pkg/constants"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package nodecmd

import (
"github.com/ava-labs/avalanche-cli/pkg/node"
"sort"
"strings"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
"github.com/ava-labs/avalanche-cli/pkg/models"
"github.com/ava-labs/avalanche-cli/pkg/ux"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/load_test_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package nodecmd
import (
"errors"
"fmt"
nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"path/filepath"

nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws"
gcpAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/gcp"
Expand Down
1 change: 1 addition & 0 deletions cmd/nodecmd/refresh_ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package nodecmd

import (
"fmt"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ package nodecmd

import (
"fmt"
nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"
"math"
"strconv"
"strings"

nodePkg "github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws"
gcpAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/gcp"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/scp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ package nodecmd

import (
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"path/filepath"
"strings"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
"github.com/ava-labs/avalanche-cli/pkg/models"
"github.com/ava-labs/avalanche-cli/pkg/utils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ package nodecmd

import (
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"os/exec"
"path/filepath"
"strings"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
"github.com/ava-labs/avalanche-cli/pkg/constants"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ package nodecmd

import (
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"strings"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/cmd/blockchaincmd"
"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/update_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package nodecmd

import (
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/cmd/blockchaincmd"
"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package nodecmd
import (
"encoding/json"
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"strings"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/binutils"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/validate_primary.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package nodecmd
import (
"errors"
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"os"
"strconv"
"time"

"github.com/ava-labs/avalanche-cli/pkg/node"

blockchaincmd "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd"
"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/validate_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"time"

"github.com/ava-labs/avalanche-cli/pkg/node"

blockchaincmd "github.com/ava-labs/avalanche-cli/cmd/blockchaincmd"
"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
Expand Down
3 changes: 2 additions & 1 deletion cmd/nodecmd/whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ package nodecmd

import (
"fmt"
"github.com/ava-labs/avalanche-cli/pkg/node"
"strconv"
"strings"
"sync"

"github.com/ava-labs/avalanche-cli/pkg/node"

"github.com/ava-labs/avalanche-cli/pkg/ansible"
"github.com/ava-labs/avalanche-cli/pkg/application"
awsAPI "github.com/ava-labs/avalanche-cli/pkg/cloud/aws"
Expand Down

0 comments on commit 4b8d86b

Please sign in to comment.