(cmd *cobra.Command, args []string)
| 78 | } |
| 79 | |
| 80 | func installHooksCommand(cmd *cobra.Command, args []string) { |
| 81 | updateForce = forceInstall |
| 82 | |
| 83 | // TODO(@ttaylorr): this is a hack since the `git-lfs-install(1)` calls |
| 84 | // into the function that implements `git-lfs-update(1)`. Given that, |
| 85 | // there is no way to pass flags into that function, other than |
| 86 | // hijacking the flags that `git-lfs-update(1)` already owns. |
| 87 | // |
| 88 | // At a later date, extract `git-lfs-update(1)`-related logic into its |
| 89 | // own function, and translate this flag as a boolean argument to it. |
| 90 | updateManual = manualInstall |
| 91 | |
| 92 | updateCommand(cmd, args) |
| 93 | } |
| 94 | |
| 95 | func init() { |
| 96 | RegisterCommand("install", installCommand, func(cmd *cobra.Command) { |
no test coverage detected