cli/pkg/cmd
majiayu000 3f0044fd94 fix: error when --remote flag used with repo argument
When a repository argument is provided to `gh repo fork`, the command
operates independently of the current local repository. Using --remote
in this context is incompatible because there's no local repository to
add the remote to.

This change returns an explicit error when these flags are combined,
providing clear feedback instead of silently ignoring the --remote flag.

Fixes #2722

Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-26 14:43:52 +08:00
..
accessibility PR feedback 2025-04-30 15:05:07 -04:00
actions Remove trailing whitespace 2025-02-13 11:06:27 +05:00
agent-task Remove extra flag default from help usage 2025-11-17 10:09:17 -05:00
alias Fixes #10590 2025-03-26 13:42:39 -04:00
api docs(api): add example for --input option 2025-10-31 13:44:17 +00:00
attestation chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
auth refactor(auth refresh): use PlainHttpClient instead of zero http.Client 2025-10-13 16:51:13 +01:00
browse Add tests of browse --actions 2025-12-11 11:31:12 +00:00
cache docs(cache delete): remove redundant comment 2025-10-02 11:36:00 +01:00
codespace fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
completion Remove trailing whitespace 2025-02-13 11:06:27 +05:00
config Merge pull request #11003 from cli/kw-bks/enclose-config-options-in-code-blocks 2025-05-22 10:14:14 -06:00
extension chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
factory fix(factory): add PlainHttpClient to factory 2025-10-13 16:42:18 +01:00
gist fix: resolve nilerr issues 2025-11-03 20:05:26 +00:00
gpg-key Fix StatusJSONResponse usage (#10810) 2025-05-01 20:22:43 +01:00
issue fix(pr/shared): delegate query compilation to search package 2025-11-20 13:35:24 +00:00
label Introduce color_labels support, update commands 2025-04-02 18:24:20 -04:00
org Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
pr refactor(pkg/search): rename KeywordsVerbatim to ImmutableKeywords 2025-11-20 16:53:16 +00:00
preview doc(preview): add long description 2025-05-10 11:54:32 -06:00
project Merge branch 'trunk' into kw/accessible-prompter-and-disable-spinners-config 2025-04-23 07:30:54 -06:00
release docs(release list): fix typo 2025-10-31 20:38:04 +00:00
repo fix: error when --remote flag used with repo argument 2025-12-26 14:43:52 +08:00
root fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
ruleset Remove trailing whitespace 2025-02-13 11:06:27 +05:00
run fix: resolve gocritic issue 2025-11-03 20:05:26 +00:00
search docs(search prs): mention advanced issue search syntax support 2025-09-08 18:37:37 +01:00
secret refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
ssh-key Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
status Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
variable refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
version Fix --version flag printing to stdout 2022-05-24 16:21:13 +02:00
workflow Quote filenames suggested at the end of worklow run 2025-06-16 18:02:47 +02:00