Skip to content

Commit

Permalink
refactor: move chain commands to respective folder
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Dec 5, 2023
1 parent 4c15cc9 commit 97bcfdc
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package chain
package archway

import (
"github.com/hugobyte/dive-core/cli/common"
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/archway/run.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package archway
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/archway/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package archway
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/archway/utils.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package archway
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package chain
package eth

import (
"github.com/hugobyte/dive-core/cli/common"
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/eth/run.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package eth
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/eth/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package eth
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/eth/utils.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package eth
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package chain
package hardhat

import (
"github.com/hugobyte/dive-core/cli/common"
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/hardhat/run.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package hardhat
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/hardhat/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package hardhat
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/hardhat/utils.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package hardhat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package chain
package neutron

import (
"github.com/hugobyte/dive-core/cli/common"
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/neutron/run.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package neutron
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/neutron/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package neutron
1 change: 1 addition & 0 deletions cli/cmd/chains/chain/neutron/utils.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package neutron
13 changes: 8 additions & 5 deletions cli/cmd/chains/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import (
"os"
"slices"

"github.com/hugobyte/dive-core/cli/cmd/chains/chain"
"github.com/hugobyte/dive-core/cli/cmd/chains/chain/archway"
"github.com/hugobyte/dive-core/cli/cmd/chains/chain/eth"
"github.com/hugobyte/dive-core/cli/cmd/chains/chain/hardhat"
"github.com/hugobyte/dive-core/cli/cmd/chains/chain/icon"
"github.com/hugobyte/dive-core/cli/cmd/chains/chain/neutron"
"github.com/hugobyte/dive-core/cli/common"
"github.com/spf13/cobra"
)
Expand All @@ -19,10 +22,10 @@ By executing this command, the node is launched, enabling network participation,
maintenance within the specified blockchain ecosystem.`,
).
AddCommand(icon.IconCmd).
AddCommand(chain.EthCmd).
AddCommand(chain.HardhatCmd).
AddCommand(chain.ArchwayCmd).
AddCommand(chain.NeutronCmd).
AddCommand(eth.EthCmd).
AddCommand(hardhat.HardhatCmd).
AddCommand(archway.ArchwayCmd).
AddCommand(neutron.NeutronCmd).
SetRun(chains).
Build()

Expand Down

0 comments on commit 97bcfdc

Please sign in to comment.