Merge pull request #7 from yanamura/tools add captain to Tools
Merge pull request #7 from yanamura/tools
add captain to Tools
Captain makes easy to manage git hooks
if you want to install globally, use Mint
$ mint install yanamura/Captain
/// Package.swift dependencies: [ ... .package(url: "https://github.com/yanamura/Captain"), ]
$ swift build --package-path <path to Package.swift> -c release
executable binary will be created to ./build/release/captain
create .captain onproject root directory.
.captain
/ProjectDir /.git .gitignore .captain
.git directory and .captain file should be in same location.
{ "pre-commit": "swift-format -r Sources -i" }
or
{ "pre-commit": [ "swift-format -r Sources -i", "git add ." ] }
$ captain install
$ swift run --package-path <path to Package.swift> -c release captain install
$ mint run yanamura/Captain captain install
$ captain uninstall
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Captain
Captain makes easy to manage git hooks
Install
Using Mint
if you want to install globally, use Mint
Using SwiftPackageManager
executable binary will be created to ./build/release/captain
Usage
Configuration
create
.captain
onproject root directory..git directory and .captain file should be in same location.
.captain
or
supported hooks
Set Git Hooks
Using Swift Package Manager
Using Mint
Unset Git Hooks