mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
26 lines
570 B
Go
26 lines
570 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var varCmd = &cobra.Command{
|
|
Use: "var",
|
|
Short: "Show a Git logical variable",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_interrogator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(varCmd).Standalone()
|
|
varCmd.Flags().BoolS("l", "l", false, "Cause the logical variables to be listed")
|
|
|
|
rootCmd.AddCommand(varCmd)
|
|
|
|
carapace.Gen(varCmd).PositionalCompletion(
|
|
git.ActionVariables(),
|
|
)
|
|
}
|