creinit

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelloWorldTemplate string = "HelloWorld"
	PoRTemplate        string = "PoR"
	ConfHTTPTemplate   string = "ConfHTTP"
)
View Source
const (
	SdkVersion              = "v1.2.0"
	EVMCapabilitiesVersion  = "v1.0.0-beta.5"
	HTTPCapabilitiesVersion = "v1.0.0-beta.0"
	CronCapabilitiesVersion = "v1.0.0-beta.0"
)
View Source
const SecretsFileName = "secrets.yaml"

Variables

This section is empty.

Functions

func New

func New(runtimeContext *runtime.Context) *cobra.Command

Types

type Inputs

type Inputs struct {
	ProjectName  string `validate:"omitempty,project_name" cli:"project-name"`
	TemplateID   uint32 `validate:"omitempty,min=0"`
	WorkflowName string `validate:"omitempty,workflow_name" cli:"workflow-name"`
	RPCUrl       string `validate:"omitempty,url" cli:"rpc-url"`
}

type InstalledDependencies added in v1.1.0

type InstalledDependencies struct {
	ModuleName string
	Deps       []string
}

InstalledDependencies contains info about installed Go dependencies

type LanguageTemplate

type LanguageTemplate struct {
	Title      string
	Lang       TemplateLanguage
	EntryPoint string
	Workflows  []WorkflowTemplate
}

func (LanguageTemplate) GetTitle

func (l LanguageTemplate) GetTitle() string

type TemplateLanguage

type TemplateLanguage string
const (
	TemplateLangGo TemplateLanguage = "go"
	TemplateLangTS TemplateLanguage = "typescript"
)

type TitledTemplate

type TitledTemplate interface {
	GetTitle() string
}

type WizardResult added in v1.1.0

type WizardResult struct {
	ProjectName  string
	Language     string
	TemplateName string
	RPCURL       string
	WorkflowName string
	Completed    bool
	Cancelled    bool
}

WizardResult contains the wizard output

func RunWizard added in v1.1.0

func RunWizard(inputs Inputs, isNewProject bool, existingLanguage string) (WizardResult, error)

RunWizard runs the interactive wizard and returns the result

type WorkflowTemplate

type WorkflowTemplate struct {
	Folder string
	Title  string
	ID     uint32
	Name   string
	Hidden bool // If true, this template will be hidden from the user selection prompt
}

func (WorkflowTemplate) GetTitle

func (w WorkflowTemplate) GetTitle() string

Jump to

Keyboard shortcuts

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