File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
completers/common/op_completer Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ package cmd
2+
3+ import (
4+ "github.com/carapace-sh/carapace"
5+ "github.com/carapace-sh/carapace-bridge/pkg/actions/bridge"
6+ "github.com/spf13/cobra"
7+ )
8+
9+ var rootCmd = & cobra.Command {
10+ Use : "op" ,
11+ Short : "1Password CLI" ,
12+ Long : "https://developer.1password.com/docs/cli" ,
13+ Run : func (cmd * cobra.Command , args []string ) {},
14+ DisableFlagParsing : true ,
15+ }
16+
17+ func Execute () error {
18+ return rootCmd .Execute ()
19+ }
20+
21+ func init () {
22+ carapace .Gen (rootCmd ).Standalone ()
23+
24+ carapace .Gen (rootCmd ).PositionalAnyCompletion (
25+ bridge .ActionCobra ("op" ),
26+ )
27+ }
Original file line number Diff line number Diff line change 1+ package main
2+
3+ import "github.com/carapace-sh/carapace-bin/completers/common/op_completer/cmd"
4+
5+ func main () {
6+ cmd .Execute ()
7+ }
You can’t perform that action at this time.
0 commit comments