applsp

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdLsp = &cli.Command{
	Hidden: false,
	Name:   "lsp",
	Usage:  "run Wa langugage server (dev)",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:  "wa-root",
			Usage: "set wa root",
			Value: "",
		},
		&cli.StringFlag{
			Name:  "wa-os",
			Usage: "set wa os",
			Value: "",
		},
		&cli.StringFlag{
			Name:  "log-file",
			Usage: "set log file",
			Value: "",
		},
		&cli.StringFlag{
			Name:  "sync-file-dir",
			Usage: "set sync file dir",
			Value: "",
		},
	},
	Action: func(c *cli.Context) error {
		opt := &lsp.Option{
			LogFile:     c.String("log-file"),
			SyncFileDir: c.String("sync-file-dir"),
			WaOS:        c.String("wa-os"),
			WaRoot:      c.String("wa-root"),
		}
		return lsp.NewLSPServer(opt).Run()
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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