cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string // 版本号,通过编译参数注入
	BuildTime string // 构建时间,通过编译参数注入
	Platform  string // 目标平台,通过编译参数注入
	Arch      string // 目标架构,通过编译参数注入
)

Functions

func PrintHelp

func PrintHelp()

PrintHelp 显示命令行帮助信息

func PrintVersion

func PrintVersion()

PrintVersion 打印ghost-lang的版本信息

func Run

func Run()

Run 是CLI的主函数 解析命令行参数并执行相应的操作

func RunFile

func RunFile(fileName string)

RunFile 执行指定的.gh文件

参数:

fileName - 要执行的文件路径

func StartREPL

func StartREPL()

StartREPL 启动repl,提供即时代码执行环境

Types

This section is empty.

Jump to

Keyboard shortcuts

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