rename fgj to fj

Module path, binary name, config dir, help text, and docs
all updated from fgj-sid/fgj to fj.
This commit is contained in:
sid 2026-04-26 08:16:52 -06:00
parent a6cf9a7096
commit bc43f6e5a5
34 changed files with 479 additions and 479 deletions

View file

@ -7,10 +7,10 @@ import (
"strings"
"code.gitea.io/sdk/gitea"
"forgejo.zerova.net/public/fgj-sid/internal/api"
"forgejo.zerova.net/public/fgj-sid/internal/config"
gitpkg "forgejo.zerova.net/public/fgj-sid/internal/git"
"forgejo.zerova.net/public/fgj-sid/internal/text"
"forgejo.zerova.net/public/fj/internal/api"
"forgejo.zerova.net/public/fj/internal/config"
gitpkg "forgejo.zerova.net/public/fj/internal/git"
"forgejo.zerova.net/public/fj/internal/text"
"github.com/spf13/cobra"
)
@ -26,13 +26,13 @@ var prListCmd = &cobra.Command{
Short: "List pull requests",
Long: "List pull requests in a repository.",
Example: ` # List open pull requests
fgj pr list
fj pr list
# List all pull requests for a specific repo
fgj pr list -s all -R owner/repo
fj pr list -s all -R owner/repo
# Output as JSON
fgj pr list --json`,
fj pr list --json`,
RunE: runPRList,
}
@ -41,19 +41,19 @@ var prViewCmd = &cobra.Command{
Short: "View a pull request",
Long: "Display detailed information about a pull request.",
Example: ` # View pull request #5
fgj pr view 5
fj pr view 5
# View using URL
fgj pr view https://codeberg.org/owner/repo/pulls/5
fj pr view https://codeberg.org/owner/repo/pulls/5
# View PR for current branch
fgj pr view
fj pr view
# Open in browser
fgj pr view 5 --web
fj pr view 5 --web
# View as JSON
fgj pr view 5 --json`,
fj pr view 5 --json`,
Args: cobra.MaximumNArgs(1),
RunE: runPRView,
}
@ -63,13 +63,13 @@ var prCreateCmd = &cobra.Command{
Short: "Create a pull request",
Long: "Create a new pull request.",
Example: ` # Create a pull request from feature branch to main
fgj pr create -t "Add login page" -H feature/login
fj pr create -t "Add login page" -H feature/login
# Create with body and custom base branch
fgj pr create -t "Fix bug" -b "Closes #42" -H fix/bug -B develop
fj pr create -t "Fix bug" -b "Closes #42" -H fix/bug -B develop
# Create and self-assign
fgj pr create -t "Update docs" -H docs/update -a @me`,
fj pr create -t "Update docs" -H docs/update -a @me`,
RunE: runPRCreate,
}
@ -78,16 +78,16 @@ var prMergeCmd = &cobra.Command{
Short: "Merge a pull request",
Long: "Merge a pull request.",
Example: ` # Merge pull request #5
fgj pr merge 5
fj pr merge 5
# Squash merge
fgj pr merge 5 --merge-method squash
fj pr merge 5 --merge-method squash
# Rebase merge
fgj pr merge 5 --merge-method rebase
fj pr merge 5 --merge-method rebase
# Merge without confirmation
fgj pr merge 5 -y`,
fj pr merge 5 -y`,
Args: cobra.ExactArgs(1),
RunE: runPRMerge,
}
@ -97,10 +97,10 @@ var prCloseCmd = &cobra.Command{
Short: "Close a pull request",
Long: "Close a pull request without merging.",
Example: ` # Close PR #5
fgj pr close 5
fj pr close 5
# Close with a comment
fgj pr close 5 -c "Won't merge, superseded by #10"`,
fj pr close 5 -c "Won't merge, superseded by #10"`,
Args: cobra.ExactArgs(1),
RunE: runPRClose,
}
@ -110,7 +110,7 @@ var prReopenCmd = &cobra.Command{
Short: "Reopen a pull request",
Long: "Reopen a closed pull request.",
Example: ` # Reopen PR #5
fgj pr reopen 5`,
fj pr reopen 5`,
Args: cobra.ExactArgs(1),
RunE: runPRReopen,
}
@ -120,13 +120,13 @@ var prEditCmd = &cobra.Command{
Short: "Edit a pull request",
Long: "Edit a pull request's title, body, or metadata.",
Example: ` # Update the title of PR #5
fgj pr edit 5 -t "Updated title"
fj pr edit 5 -t "Updated title"
# Add assignees and labels
fgj pr edit 5 --add-assignee user1 --add-label bug
fj pr edit 5 --add-assignee user1 --add-label bug
# Remove a reviewer and set milestone
fgj pr edit 5 --remove-reviewer user2 --milestone "v1.0"`,
fj pr edit 5 --remove-reviewer user2 --milestone "v1.0"`,
Args: cobra.ExactArgs(1),
RunE: runPREdit,
}
@ -136,7 +136,7 @@ var prCheckoutCmd = &cobra.Command{
Short: "Check out a pull request locally",
Long: "Check out the head branch of a pull request.",
Example: ` # Check out PR #5
fgj pr checkout 5`,
fj pr checkout 5`,
Args: cobra.ExactArgs(1),
RunE: runPRCheckout,
}