Skip to content

Commit

Permalink
Merge pull request #1321 from rsteube/add-bash-lsp
Browse files Browse the repository at this point in the history
added bash-language-server
  • Loading branch information
rsteube authored Sep 26, 2022
2 parents 87c6625 + 71b5192 commit 7029ba4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions completers/bash-language-server_completer/cmd/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
Use: "bash-language-server",
Short: "A language server for Bash",
Long: "https://github.com/bash-lsp/bash-language-server",
Run: func(cmd *cobra.Command, args []string) {},
}

func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
rootCmd.Flags().BoolP("help", "h", false, "show help")
rootCmd.Flags().BoolP("version", "v", false, "show version")

carapace.Gen(rootCmd).PositionalCompletion(
carapace.ActionValues("start"),
)
}
7 changes: 7 additions & 0 deletions completers/bash-language-server_completer/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "github.com/rsteube/carapace-bin/completers/bash-language-server_completer/cmd"

func main() {
cmd.Execute()
}

0 comments on commit 7029ba4

Please sign in to comment.