commands

package
v1.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: GPL-3.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colorizer aurora.Aurora
View Source
var CurrentCLIVersion string
View Source
var DeploymentProvider providers.DeploymentProvider
View Source
var ForceInit bool
View Source
var RootCmd = &cobra.Command{
	Use:   "tenderly",
	Short: "Tenderly CLI is a suite of development tools for smart contracts.",
	Long: "Tenderly CLI is a suite of development tools for smart contracts which allows your to monitor and debug them on any network.\n\n" +
		"To report a bug or give feedback send us an email at support@tenderly.co\n",
}

Functions

func CheckLogin

func CheckLogin()

func CheckProvider added in v0.8.0

func CheckProvider(deploymentProvider providers.DeploymentProvider)

func CheckVersion

func CheckVersion(force bool, encounteredError bool)

func DetectedProjectMessage added in v0.1.6

func DetectedProjectMessage(
	printLoginSuccess bool,
	action string,
	commandFmt string,
)

func Execute

func Execute()

func ExtractNetworkIDs added in v1.2.0

func ExtractNetworkIDs(networkIDs string) []string

func GetConfigPayload added in v0.9.0

func GetConfigPayload(providerConfig *providers.Config) *payloads.Config

func GetProjectFromFlag added in v1.2.0

func GetProjectFromFlag(projectName string, projects []*model.Project, rest *rest.Rest) *model.Project

func InitProvider added in v1.2.0

func InitProvider()

func NewRest added in v1.2.0

func NewRest() *rest.Rest

func PromptNewDirectory added in v1.2.0

func PromptNewDirectory(forMessage string, defaultPath string) string

func PromptProjectSelect added in v1.2.0

func PromptProjectSelect(projects []*model.Project, rest *rest.Rest, createNewOption bool) *model.Project

func SetCurrentCLIVersion

func SetCurrentCLIVersion(version string)

func WriteGlobalConfig

func WriteGlobalConfig()

func WriteProjectConfig added in v0.2.5

func WriteProjectConfig()

func WrongFolderMessage added in v0.1.6

func WrongFolderMessage(action string, commandFmt string)

Types

type ProjectConfiguration added in v0.5.2

type ProjectConfiguration struct {
	Networks []string
}

type ProjectConfigurationMap added in v0.5.2

type ProjectConfigurationMap map[string]*ProjectConfiguration

func GetProjectConfiguration added in v1.4.0

func GetProjectConfiguration() (ProjectConfigurationMap, error)

type TenderlyStandardFormatter

type TenderlyStandardFormatter struct {
}

func (TenderlyStandardFormatter) Format

func (t TenderlyStandardFormatter) Format(entry *logrus.Entry) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL