Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Feb 18, 2022
1 parent 28f291d commit 5a1c7d6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions completers/ip_completer/cmd/address_add.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/net"
"github.com/spf13/cobra"
)

var address_addCmd = &cobra.Command{
Use: "add",
Short: "add ip address",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(address_addCmd).Standalone()

addressCmd.AddCommand(address_addCmd)

carapace.Gen(address_addCmd).PositionalCompletion(
net.ActionIpv4Addresses(),
)
}

0 comments on commit 5a1c7d6

Please sign in to comment.