setup

package
v0.0.0-...-dc5cb5d Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEditor

func GetEditor() string

GetEditor 获取用户配置的编辑器,优先使用 $EDITOR,默认为 vim

func IsFileEmpty

func IsFileEmpty(fs afero.Fs, filePath string) (bool, error)

IsFileEmpty 检查文件是否为空或仅包含空白字符

func OpenInEditor

func OpenInEditor(filePath string) error

OpenInEditor 在编辑器中打开文件

func ToKebabCase

func ToKebabCase(s string) string

ToKebabCase 将字符串转换为 kebab-case 格式 例如: "My Feature Name" -> "my-feature-name"

"myFeatureName" -> "my-feature-name"

Types

type FeatureInfo

type FeatureInfo struct {
	Name    string
	IsEmpty bool
}

FeatureInfo feature 信息

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager 管理项目文档的 setup

func NewManager

func NewManager(projectPath string) *Manager

NewManager 创建 setup manager

func (*Manager) ShowMainUI

func (m *Manager) ShowMainUI() error

ShowMainUI 显示主界面

Jump to

Keyboard shortcuts

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