initcmd

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectIDE

func DetectIDE() string

DetectIDE checks which AI-powered IDE is currently being used

func NewCommand

func NewCommand() *cobra.Command

NewCommand initializes a new Nexlayer project with automatic detection

func NewProvider

func NewProvider() registry.CommandProvider

NewProvider creates a new provider instance

func SetAIProvider

func SetAIProvider(provider AIProvider)

SetAIProvider sets the AI provider for template generation

Types

type AIProvider

type AIProvider interface {
	GenerateTemplate(projectName string) (string, error)
}

AIProvider is the interface for template generation

func GetAIProvider

func GetAIProvider() AIProvider

GetAIProvider returns the current AI provider

type Provider

type Provider struct{}

Provider struct represents the command provider

func (*Provider) Commands

func (p *Provider) Commands(deps *registry.CommandDependencies) []*cobra.Command

Commands returns the list of available commands

func (*Provider) Dependencies

func (p *Provider) Dependencies() []string

Dependencies returns an empty dependency list

func (*Provider) Description

func (p *Provider) Description() string

Description returns the provider's description

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider's name

Jump to

Keyboard shortcuts

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