Skip to content

Commit 727e308

Browse files
committed
feat: rename CLI to 'gt' (short alias), keep 'gitant' as alias
- Primary command is now Client for Gitant nodes — push, pull, issues, PRs, and more. Pair with gitant-daemon (self-host) or a hosted Gitant URL. Usage: gt [command] Aliases: gt, gitant Available Commands: agent Manage agents and DID identities alias Manage command aliases api Make an authenticated Gitant API request (like gh api) auth Authenticate with a Gitant node (like gh auth) backup Backup a gitant daemon data directory bounty Manage bounties browse Open repository or issue in the web browser (like gh browse) cert Inspect signed ref-update certificates changelog Show unified activity changelog for a repository chat Manage chat messages (from Fossil) ci Work with CI/CD pipelines clone Clone a repository from a gitant node completion Generate the autocompletion script for the specified shell config Manage gitant configuration (like gh config) deployment Manage deployments doctor Check gitant installation and connectivity environment Manage environments epic Manage epics (from GitLab) extension Manage CLI extensions (from GitHub) forum Manage forum threads (from Fossil) git Git operations with Gitant enhancements governance Manage governance proposals (from Gitopia) gpg-key Manage GPG keys help Help about any command init Initialize a new repository ipfs IPFS pin management — list pinned CIDs and retrieve objects issue Manage issues (like gh issue) kanban Manage Kanban boards (from Gitea) label Manage repository labels mcp MCP server — expose gitant tools to LLM agents milestone Manage milestones mirror Mirror a repository from GitHub/GitLab name Register and resolve names on Base L2 notification Manage notifications pr Manage pull requests protection Manage branch protection rules pull Pull changes from a remote gitant node push Push changes to a remote gitant node quickstart Interactive setup wizard for gitant release Manage releases (like gh release) repo Manage repositories (like gh repo) restore Restore gitant data from backup runner Manage CI/CD runners search Search code in a repository (like gh search code) seed Manage seed nodes (from Radicle) service-desk Manage service desk tickets (from OneDev) snippet Manage code snippets ssh-key Manage SSH keys stack Manage stacked diffs (from Sapling) star Star and unstar repositories status Show daemon status and recent activity (like gh status) sync Sync repos from peer nodes (HTTP fallback for p2p gossip) task Manage agent tasks time Time tracking (from OneDev) todo Manage todo items ucan Manage UCAN tokens variable Manage CI/CD variables version Print version information webhook Manage webhooks whoami Print your current identity (DID) and optional node info workspace Manage workspaces (from OneDev) Flags: -h, --help help for gt Use "gt [command] --help" for more information about a command. (like gl for gitlawb) - Client for Gitant nodes — push, pull, issues, PRs, and more. Pair with gitant-daemon (self-host) or a hosted Gitant URL. Usage: gt [command] Aliases: gt, gitant Available Commands: agent Manage agents and DID identities alias Manage command aliases api Make an authenticated Gitant API request (like gh api) auth Authenticate with a Gitant node (like gh auth) backup Backup a gitant daemon data directory bounty Manage bounties browse Open repository or issue in the web browser (like gh browse) cert Inspect signed ref-update certificates changelog Show unified activity changelog for a repository chat Manage chat messages (from Fossil) ci Work with CI/CD pipelines clone Clone a repository from a gitant node completion Generate the autocompletion script for the specified shell config Manage gitant configuration (like gh config) deployment Manage deployments doctor Check gitant installation and connectivity environment Manage environments epic Manage epics (from GitLab) extension Manage CLI extensions (from GitHub) forum Manage forum threads (from Fossil) git Git operations with Gitant enhancements governance Manage governance proposals (from Gitopia) gpg-key Manage GPG keys help Help about any command init Initialize a new repository ipfs IPFS pin management — list pinned CIDs and retrieve objects issue Manage issues (like gh issue) kanban Manage Kanban boards (from Gitea) label Manage repository labels mcp MCP server — expose gitant tools to LLM agents milestone Manage milestones mirror Mirror a repository from GitHub/GitLab name Register and resolve names on Base L2 notification Manage notifications pr Manage pull requests protection Manage branch protection rules pull Pull changes from a remote gitant node push Push changes to a remote gitant node quickstart Interactive setup wizard for gitant release Manage releases (like gh release) repo Manage repositories (like gh repo) restore Restore gitant data from backup runner Manage CI/CD runners search Search code in a repository (like gh search code) seed Manage seed nodes (from Radicle) service-desk Manage service desk tickets (from OneDev) snippet Manage code snippets ssh-key Manage SSH keys stack Manage stacked diffs (from Sapling) star Star and unstar repositories status Show daemon status and recent activity (like gh status) sync Sync repos from peer nodes (HTTP fallback for p2p gossip) task Manage agent tasks time Time tracking (from OneDev) todo Manage todo items ucan Manage UCAN tokens variable Manage CI/CD variables version Print version information webhook Manage webhooks whoami Print your current identity (DID) and optional node info workspace Manage workspaces (from OneDev) Flags: -h, --help help for gt Use "gt [command] --help" for more information about a command. still works as an alias - GoReleaser builds both gt and gitant binaries - Makefile builds gt, copies to gitant
1 parent fccdc0b commit 727e308

3 files changed

Lines changed: 23 additions & 3 deletions

File tree

.goreleaser.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ before:
77
- go mod tidy
88

99
builds:
10+
- id: gt
11+
main: ./cmd/gitant/
12+
binary: gt
13+
env:
14+
- CGO_ENABLED=0
15+
goos:
16+
- linux
17+
- darwin
18+
- windows
19+
goarch:
20+
- amd64
21+
- arm64
22+
ldflags:
23+
- -s -w
24+
- -X github.com/GrayCodeAI/gitant-cli/internal/version.Version={{.Version}}
25+
- -X github.com/GrayCodeAI/gitant-cli/internal/version.Commit={{.Commit}}
26+
- -X github.com/GrayCodeAI/gitant-cli/internal/version.BuildTime={{.Date}}
27+
1028
- id: gitant
1129
main: ./cmd/gitant/
1230
binary: gitant

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ LDFLAGS := -ldflags "-s -w \
99
-X github.com/GrayCodeAI/gitant-cli/internal/version.Commit=$(COMMIT) \
1010
-X github.com/GrayCodeAI/gitant-cli/internal/version.BuildTime=$(BUILD_TIME)"
1111

12-
## build: Compile gitant and git-remote-gitant
12+
## build: Compile gt (gitant) and git-remote-gitant
1313
build:
14-
CGO_ENABLED=0 go build $(LDFLAGS) -o bin/gitant ./cmd/gitant/
14+
CGO_ENABLED=0 go build $(LDFLAGS) -o bin/gt ./cmd/gitant/
15+
cp bin/gt bin/gitant
1516
CGO_ENABLED=0 go build $(LDFLAGS) -o bin/git-remote-gitant ./cmd/git-remote-gitant/
1617

1718
## install: Install to $GOPATH/bin

cmd/gitant/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import (
1414
)
1515

1616
var rootCmd = &cobra.Command{
17-
Use: "gitant",
17+
Use: "gt",
1818
Short: "Gitant CLI for developers and agents",
1919
Long: "Client for Gitant nodes — push, pull, issues, PRs, and more. Pair with gitant-daemon (self-host) or a hosted Gitant URL.",
20+
Aliases: []string{"gitant"},
2021
}
2122

2223
var initCmd = &cobra.Command{

0 commit comments

Comments
 (0)