mirror of
https://github.com/hanzo-fi/numscript.git
synced 2026-10-30 20:54:52 +00:00
25 lines
478 B
Go
25 lines
478 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/hanzo-fi/numscript/internal/lsp"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var lspCmd = &cobra.Command{
|
|
Use: "lsp",
|
|
Short: "Run the lsp server",
|
|
Long: "Run the lsp server. This command is usually meant to be used for editors integration.",
|
|
Hidden: true,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
err := lsp.RunServer()
|
|
if err != nil {
|
|
cmd.SilenceErrors = true
|
|
cmd.SilenceUsage = true
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
},
|
|
}
|