mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
26 lines
722 B
Go
26 lines
722 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var submodule_statusCmd = &cobra.Command{
|
|
Use: "status",
|
|
Short: "Show the status of the submodule",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(submodule_statusCmd).Standalone()
|
|
submodule_statusCmd.Flags().Bool("cached", false, "print the SHA-1 recorded in the superproject for each submodule")
|
|
submodule_statusCmd.Flags().Bool("recursive", false, "recurse into nested submodules")
|
|
|
|
submoduleCmd.AddCommand(submodule_statusCmd)
|
|
|
|
carapace.Gen(submodule_statusCmd).PositionalAnyCompletion(
|
|
git.ActionSubmodulePaths().FilterArgs(),
|
|
)
|
|
}
|