From b918da47c6dce940defdda74e14ec47ce1738867 Mon Sep 17 00:00:00 2001 From: dan9186 Date: Thu, 9 Apr 2026 08:59:34 -0700 Subject: [PATCH 1/2] update help contents a little more --- cmd/branch.go | 2 +- cmd/clone.go | 6 +++++- cmd/log.go | 2 +- cmd/push.go | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cmd/branch.go b/cmd/branch.go index eb586f2..054f736 100644 --- a/cmd/branch.go +++ b/cmd/branch.go @@ -31,7 +31,7 @@ func init() { } var branchCmd = &cobra.Command{ - Use: "branch", + Use: "branch []", Short: "Manage branches across all repos in a directory", Long: `List, create, delete, move, or show the current branch across all repos in a directory.`, Args: cobra.MaximumNArgs(2), diff --git a/cmd/clone.go b/cmd/clone.go index 039a9b4..82ce4d9 100644 --- a/cmd/clone.go +++ b/cmd/clone.go @@ -24,7 +24,11 @@ func init() { var cloneCmd = &cobra.Command{ Use: "clone [user|org] [directory]", Short: "Clone all active repos from an org or user", - Long: `Clone all active (non-archived) repositories from a GitHub org or user into the target directory. The optional directory argument specifies where to clone the repos (defaults to the current directory).`, + Long: `Clone all active (non-archived) repositories from a GitHub org or user into the target directory. +The optional directory argument specifies where to clone the repos (defaults to the current directory). + +When --topics is provided multiple times, only repos that have ALL specified topics are cloned (AND logic). +To clone repos matching any one topic, run separate clone invocations per topic.`, Args: cobra.MaximumNArgs(2), ValidArgsFunction: createCmdValidArgsFunc, PersistentPreRun: setupClient, diff --git a/cmd/log.go b/cmd/log.go index d910036..b2c1e41 100644 --- a/cmd/log.go +++ b/cmd/log.go @@ -26,7 +26,7 @@ func init() { } var logCmd = &cobra.Command{ - Use: "log", + Use: "log [..]", Short: "Show commit logs for all repos in a directory", Long: `Show commit logs all repos in a directory. Since commit hashes would not be the same between multiple repos this command really only makes sense when used with two branch names or two tags.`, diff --git a/cmd/push.go b/cmd/push.go index 07c7990..6f0848b 100644 --- a/cmd/push.go +++ b/cmd/push.go @@ -29,7 +29,7 @@ func init() { } var pushCmd = &cobra.Command{ - Use: "push", + Use: "push [] []", Short: "Push all repos in a directory", Long: `Push local commits to the remote across all repos in a directory.`, ValidArgsFunction: pushCmdValidArgsFunc, From 09f4b5ebe1689ec59aa7554d6cbedc10ae8ec8a3 Mon Sep 17 00:00:00 2001 From: dan9186 Date: Thu, 9 Apr 2026 09:13:07 -0700 Subject: [PATCH 2/2] go fmt --- cmd/clone.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/clone.go b/cmd/clone.go index 82ce4d9..7ce976a 100644 --- a/cmd/clone.go +++ b/cmd/clone.go @@ -22,8 +22,8 @@ func init() { } var cloneCmd = &cobra.Command{ - Use: "clone [user|org] [directory]", - Short: "Clone all active repos from an org or user", + Use: "clone [user|org] [directory]", + Short: "Clone all active repos from an org or user", Long: `Clone all active (non-archived) repositories from a GitHub org or user into the target directory. The optional directory argument specifies where to clone the repos (defaults to the current directory).