Bug 267224

Summary: [New Port] devel/gcli: CLI utility to interact with various git forges
Product: Ports & Packages Reporter: Robert Clausecker <fuz>
Component: Individual Port(s)Assignee: Li-Wen Hsu <lwhsu>
Status: Closed FIXED    
Severity: Affects Only Me CC: grahamperrin, lwhsu
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://gitlab.com/herrhotzenplotz/gcli
Attachments:
Description Flags
[New Port] devel/gcli: CLI utility to interact with various git forges fuz: maintainer-approval+

Description Robert Clausecker freebsd_committer freebsd_triage 2022-10-20 10:53:59 UTC
Created attachment 237481 [details]
[New Port] devel/gcli: CLI utility to interact with various git forges

GCLI is a simple and portable CLI tool for interacting with GitHub,
GitLab, and Gitea from the command line.

This tool was written because the official GitHub CLI tool only supports
GitHub.  The author wanted a simple unified tool for various git forges
such as GitHub and GitLab because every forge does things differently
yet all build on Git and purposefully break with its philosophy.

Also, the official tool from Github is written in Go, which does manual
DNS resolution which is a massive security vulnerability for people
using Tor as it leaks your IP to the DNS server. This program builds
upon libcurl, which obeys the operating system's DNS resolution
mechanisms and thus also works with Tor.

Tested with Poudriere on armv7 arm64 FreeBSD 13.1.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-10-22 09:36:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65240f34c0d836ec3670e7dcda5f8589aaba6dc1

commit 65240f34c0d836ec3670e7dcda5f8589aaba6dc1
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-20 10:50:32 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-22 09:35:19 +0000

    Add devel/gcli: CLI utility to interact with various Git forges

    GCLI is a simple and portable CLI tool for interacting with GitHub,
    GitLab, and Gitea from the command line.

    This tool was written because the official GitHub CLI tool only supports
    GitHub.  The author wanted a simple unified tool for various git forges
    such as GitHub and GitLab because every forge does things differently
    yet all build on Git and purposefully break with its philosophy.

    Also, the official tool from Github is written in Go, which does manual
    DNS resolution which is a massive security vulnerability for people
    using Tor as it leaks your IP to the DNS server. This program builds
    upon libcurl, which obeys the operating system's DNS resolution
    mechanisms and thus also works with Tor.

    PR:             267224

 devel/Makefile             |  1 +
 devel/gcli/Makefile (new)  | 20 ++++++++++++++++++++
 devel/gcli/distinfo (new)  |  3 +++
 devel/gcli/pkg-descr (new) | 13 +++++++++++++
 devel/gcli/pkg-plist (new) | 13 +++++++++++++
 5 files changed, 50 insertions(+)