()
| 93 | } |
| 94 | |
| 95 | func init() { |
| 96 | RegisterCommand("install", installCommand, func(cmd *cobra.Command) { |
| 97 | cmd.Flags().BoolVarP(&forceInstall, "force", "f", false, "Set the Git LFS global config, overwriting previous values.") |
| 98 | cmd.Flags().BoolVarP(&localInstall, "local", "l", false, "Set the Git LFS config for the local Git repository only.") |
| 99 | cmd.Flags().StringVarP(&fileInstall, "file", "", "", "Set the Git LFS config for the given configuration file only.") |
| 100 | if git.IsGitVersionAtLeast("2.20.0") { |
| 101 | cmd.Flags().BoolVarP(&worktreeInstall, "worktree", "w", false, "Set the Git LFS config for the current Git working tree, if multiple working trees are configured; otherwise, the same as --local.") |
| 102 | } |
| 103 | cmd.Flags().BoolVarP(&systemInstall, "system", "", false, "Set the Git LFS config in system-wide scope.") |
| 104 | cmd.Flags().BoolVarP(&skipSmudgeInstall, "skip-smudge", "s", false, "Skip automatic downloading of objects on clone or pull.") |
| 105 | cmd.Flags().BoolVarP(&skipRepoInstall, "skip-repo", "", false, "Skip repo setup, just install global filters.") |
| 106 | cmd.Flags().BoolVarP(&manualInstall, "manual", "m", false, "Print instructions for manual install.") |
| 107 | cmd.AddCommand(NewCommand("hooks", installHooksCommand)) |
| 108 | }) |
| 109 | } |
nothing calls this directly
no test coverage detected