Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + func AddNetworkFlagsToCmd(cmd *cobra.Command, networkFlags *NetworkFlags, alwaysAddEndpoint bool, ...) + func GetNetworkFromCmdLineFlags(app *application.Avalanche, networkFlags NetworkFlags, ...) (models.Network, error) + func GetNetworkFromSidecarNetworkName(app *application.Avalanche, networkName string) (models.Network, error) + type NetworkFlags struct + ClusterName string + Endpoint string + UseDevnet bool + UseLocal bool + UseMainnet bool + UseTahoe bool + type NetworkOption int64 + const Cluster + const Devnet + const Local + const Mainnet + const Tahoe + const Undefined + func GetSupportedNetworkOptionsForSubnet(app *application.Avalanche, subnetName string, ...) ([]NetworkOption, []string, []string, error) + func (n NetworkOption) String() string