Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
24 lines
872 B
Go
24 lines
872 B
Go
package ignitecmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewTestnet returns a command that groups scaffolding related sub commands.
|
|
func NewTestnet() *cobra.Command {
|
|
c := &cobra.Command{
|
|
Use: "testnet [command]",
|
|
Short: "Simulate and manage test networks",
|
|
Long: `Comprehensive toolset for managing and simulating blockchain test networks. It allows users to either run a test network in place using mainnet data or set up a multi-node environment for more complex testing scenarios. Additionally, it includes a subcommand for simulating the chain, which is useful for fuzz testing and other testing-related tasks.`,
|
|
Aliases: []string{"t"},
|
|
Args: cobra.ExactArgs(1),
|
|
}
|
|
|
|
c.AddCommand(
|
|
NewTestnetInPlace(),
|
|
NewTestnetMultiNode(),
|
|
NewChainSimulate(), // While this is not per se a testnet command, it is related to testing.
|
|
)
|
|
|
|
return c
|
|
}
|