mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
bluetoothctl: added styles (#2315)
This commit is contained in:
parent
e35326c3ff
commit
7b50a8f545
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/carapace-sh/carapace/pkg/style"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -15,6 +16,6 @@ func init() {
|
||||
carapace.Gen(advertiseCmd).Standalone()
|
||||
rootCmd.AddCommand(advertiseCmd)
|
||||
carapace.Gen(advertiseCmd).PositionalCompletion(
|
||||
carapace.ActionValues("on", "off", "broadcast", "peripheral"),
|
||||
carapace.ActionValues("on", "off", "broadcast", "peripheral").StyleF(style.ForKeyword),
|
||||
)
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/carapace-sh/carapace/pkg/style"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -14,5 +15,8 @@ var discoverableCmd = &cobra.Command{
|
||||
func init() {
|
||||
carapace.Gen(discoverableCmd).Standalone()
|
||||
rootCmd.AddCommand(discoverableCmd)
|
||||
carapace.Gen(discoverableCmd).PositionalCompletion(carapace.ActionValues("on", "off"))
|
||||
|
||||
carapace.Gen(discoverableCmd).PositionalCompletion(
|
||||
carapace.ActionValues("on", "off").StyleF(style.ForKeyword),
|
||||
)
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/carapace-sh/carapace/pkg/style"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -14,5 +15,8 @@ var pairableCmd = &cobra.Command{
|
||||
func init() {
|
||||
carapace.Gen(pairableCmd).Standalone()
|
||||
rootCmd.AddCommand(pairableCmd)
|
||||
carapace.Gen(pairableCmd).PositionalCompletion(carapace.ActionValues("on", "off"))
|
||||
|
||||
carapace.Gen(pairableCmd).PositionalCompletion(
|
||||
carapace.ActionValues("on", "off").StyleF(style.ForKeyword),
|
||||
)
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/carapace-sh/carapace/pkg/style"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -14,5 +15,8 @@ var powerCmd = &cobra.Command{
|
||||
func init() {
|
||||
carapace.Gen(powerCmd).Standalone()
|
||||
rootCmd.AddCommand(powerCmd)
|
||||
carapace.Gen(powerCmd).PositionalCompletion(carapace.ActionValues("on", "off"))
|
||||
|
||||
carapace.Gen(powerCmd).PositionalCompletion(
|
||||
carapace.ActionValues("on", "off").StyleF(style.ForKeyword),
|
||||
)
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/carapace-sh/carapace/pkg/style"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -14,5 +15,8 @@ var scanCmd = &cobra.Command{
|
||||
func init() {
|
||||
carapace.Gen(scanCmd).Standalone()
|
||||
rootCmd.AddCommand(scanCmd)
|
||||
carapace.Gen(scanCmd).PositionalCompletion(carapace.ActionValues("on", "off", "bredr", "le"))
|
||||
|
||||
carapace.Gen(scanCmd).PositionalCompletion(
|
||||
carapace.ActionValues("on", "off", "bredr", "le").StyleF(style.ForKeyword),
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user