mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 16:49:43 +00:00
Add .deb and .rpm files to goreleaser
This commit is contained in:
@@ -34,9 +34,9 @@ archives:
|
||||
- git-get
|
||||
- git-list
|
||||
replacements:
|
||||
darwin: MacOS
|
||||
linux: Linux
|
||||
windows: Windows
|
||||
darwin: macOS
|
||||
linux: linux
|
||||
windows: windows
|
||||
386: i386
|
||||
amd64: x86_64
|
||||
format_overrides:
|
||||
@@ -67,9 +67,21 @@ brews:
|
||||
name: Grzegorz Dlugoszewski
|
||||
email: git-get@grdl.dev
|
||||
folder: Formula
|
||||
homepage: "https://github.com/grdl/git-get/"
|
||||
description: "Better way to clone, organize and manage multiple git repositories"
|
||||
homepage: https://github.com/grdl/git-get/
|
||||
description: Better way to clone, organize and manage multiple git repositories
|
||||
test: |
|
||||
system "git-get --version"
|
||||
install: |
|
||||
bin.install "git-get", "git-list"
|
||||
bin.install "git-get", "git-list"
|
||||
|
||||
nfpms:
|
||||
- license: MIT
|
||||
maintainer: grdl
|
||||
homepage: https://github.com/grdl/git-get
|
||||
bindir: /usr/local/bin
|
||||
dependencies:
|
||||
- git
|
||||
description: Better way to clone, organize and manage multiple git repositories
|
||||
formats:
|
||||
- deb
|
||||
- rpm
|
||||
|
||||
34
README.md
34
README.md
@@ -8,6 +8,9 @@
|
||||
|
||||
* [Description](#description)
|
||||
* [Installation](#installation)
|
||||
* [macOS](#macos)
|
||||
* [Linux](#linux)
|
||||
* [Windows](#windows)
|
||||
* [Usage](#usage)
|
||||
* [git get](#git-get-1)
|
||||
* [git list](#git-list)
|
||||
@@ -28,14 +31,27 @@
|
||||
|
||||
## Installation
|
||||
|
||||
Each release contains two binaries: `git-get` and `git-list`. When put on PATH, git automatically recognizes them as custom commands and allows to run them as `git get` or `git list`.
|
||||
|
||||
### macOS
|
||||
|
||||
Use Homebrew:
|
||||
```
|
||||
brew install grdl/tap/git-get
|
||||
```
|
||||
|
||||
Or grab the [latest release](https://github.com/grdl/git-get/releases) and put the binaries on your PATH.
|
||||
### Linux
|
||||
|
||||
Each release contains two binaries: `git-get` and `git-list`. When put on PATH, git automatically recognizes them as custom commands and allows to run them as `git get` or `git list`.
|
||||
Download and install `.deb` or `.rpm` file from the [latest release](https://github.com/grdl/git-get/releases/latest).
|
||||
|
||||
Or install with [Linuxbrew](https://docs.brew.sh/Homebrew-on-Linux):
|
||||
```
|
||||
brew install grdl/tap/git-get
|
||||
```
|
||||
|
||||
### Windows
|
||||
|
||||
Grab the `.zip` file from the [latest release](https://github.com/grdl/git-get/releases/latest) and put the binaries on your PATH.
|
||||
|
||||
|
||||
## Usage
|
||||
@@ -45,11 +61,11 @@ Each release contains two binaries: `git-get` and `git-list`. When put on PATH,
|
||||
git get <REPO> [flags]
|
||||
|
||||
Flags:
|
||||
-b, --branch string Branch (or tag) to checkout after cloning.
|
||||
-d, --dump string Path to a dump file listing repos to clone. Ignored when <REPO> argument is used.
|
||||
-b, --branch Branch (or tag) to checkout after cloning.
|
||||
-d, --dump Path to a dump file listing repos to clone. Ignored when <REPO> argument is used.
|
||||
-h, --help Print this help and exit.
|
||||
-t, --host string Host to use when <REPO> doesn't have a specified host. (default "github.com")
|
||||
-r, --root string Path to repos root where repositories are cloned. (default "~/repositories")
|
||||
-t, --host Host to use when <REPO> doesn't have a specified host. (default "github.com")
|
||||
-r, --root Path to repos root where repositories are cloned. (default "~/repositories")
|
||||
-v, --version Print version and exit.
|
||||
```
|
||||
|
||||
@@ -58,8 +74,6 @@ The `<REPO>` argument can be any valid URL supported by git. It also accepts a s
|
||||
For example, `git get grdl/git-get` will clone `https://github.com/grdl/git-get`.
|
||||
|
||||
|
||||
|
||||
|
||||
### git list
|
||||
```
|
||||
Usage:
|
||||
@@ -68,8 +82,8 @@ Usage:
|
||||
Flags:
|
||||
-f, --fetch First fetch from remotes before listing repositories.
|
||||
-h, --help Print this help and exit.
|
||||
-o, --out string Output format. Allowed values: [dump, flat, smart, tree]. (default "tree")
|
||||
-r, --root string Path to repos root where repositories are cloned. (default "~/repositories")
|
||||
-o, --out Output format. Allowed values: [dump, flat, smart, tree]. (default "tree")
|
||||
-r, --root Path to repos root where repositories are cloned. (default "~/repositories")
|
||||
-v, --version Print version and exit.
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user