Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(testnet): change alias and local-chains dir #4409

Merged
merged 6 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/03-CLI-Commands/01-cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@ Each validator's bonded stake can be adjusted according to your testing needs, p

The multi-node command not only initializes these nodes but also gives you control over starting, stopping individual nodes. This level of control ensures you can test and iterate rapidly without needing to reinitialize the entire network each time a change is made. This makes it ideal for experimenting with validator behavior, network dynamics, and the impact of various configurations.

All initialized nodes will be stored under the `.ignite/local-chains/<appd>/testnet/` directory, which allows easy access and management.
All initialized nodes will be stored under the `.ignite/local-chains/<app>/testnet/` directory, which allows easy access and management.


Usage
Expand Down
9 changes: 3 additions & 6 deletions ignite/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ import (
// NewTestnet returns a command that groups scaffolding related sub commands.
func NewTestnet() *cobra.Command {
c := &cobra.Command{
Use: "testnet [command]",
Short: "Start a testnet local",
Long: `Start a testnet local

`,
Aliases: []string{"s"},
Use: "testnet [command]",
Short: "Start a testnet local",
Aliases: []string{"t"},
Args: cobra.ExactArgs(1),
}

Expand Down
5 changes: 2 additions & 3 deletions ignite/cmd/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ignitecmd

import (
"os"
"path"
"strconv"
"time"

Expand Down Expand Up @@ -47,8 +48,6 @@ func NewTestnetMultiNode() *cobra.Command {
Usage:
ignite testnet multi-node [flags]



`,
Args: cobra.NoArgs,
RunE: testnetMultiNodeHandler,
Expand Down Expand Up @@ -108,7 +107,7 @@ func testnetMultiNode(cmd *cobra.Command, session *cliui.Session) error {
}
nodeDirPrefix, _ := cmd.Flags().GetString(flagNodeDirPrefix)

outputDir, err := xfilepath.Join(igcfg.DirPath, xfilepath.Path("local-chains/"+c.Name()+"d/"+"testnet/"))()
outputDir, err := xfilepath.Join(igcfg.DirPath, xfilepath.Path(path.Join("local-chains", c.Name(), "testnet")))()
if err != nil {
return err
}
Expand Down
Loading