()
| 33 | } |
| 34 | |
| 35 | func init() { |
| 36 | RegisterCommand("uninstall", uninstallCommand, func(cmd *cobra.Command) { |
| 37 | cmd.Flags().BoolVarP(&localInstall, "local", "l", false, "Remove the Git LFS config for the local Git repository only.") |
| 38 | cmd.Flags().StringVarP(&fileInstall, "file", "", "", "Remove the Git LFS config for the given configuration file only.") |
| 39 | if git.IsGitVersionAtLeast("2.20.0") { |
| 40 | cmd.Flags().BoolVarP(&worktreeInstall, "worktree", "w", false, "Remove the Git LFS config for the current Git working tree, if multiple working trees are configured; otherwise, the same as --local.") |
| 41 | } |
| 42 | cmd.Flags().BoolVarP(&systemInstall, "system", "", false, "Remove the Git LFS config in system-wide scope.") |
| 43 | cmd.Flags().BoolVarP(&skipRepoInstall, "skip-repo", "", false, "Skip repo setup, just uninstall global filters.") |
| 44 | cmd.AddCommand(NewCommand("hooks", uninstallHooksCommand)) |
| 45 | }) |
| 46 | } |
nothing calls this directly
no test coverage detected