mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
25 lines
546 B
Go
25 lines
546 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var remote_showCmd = &cobra.Command{
|
|
Use: "show",
|
|
Short: "Give some inforemation about the remote",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(remote_showCmd).Standalone()
|
|
|
|
remote_showCmd.Flags().BoolS("n", "n", false, "do not query remotes")
|
|
remoteCmd.AddCommand(remote_showCmd)
|
|
|
|
carapace.Gen(remote_showCmd).PositionalCompletion(
|
|
git.ActionRemotes(),
|
|
)
|
|
}
|