Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

container repository output differs from container repository --help

未关闭
#1,095 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
cli

调研方向

Start by reproducing pulp container repository and pulp container repository --help, then compare their command listings and the matching pulp shell completion. Done means both outputs include the same repository commands, including create, destroy, sync, and update, and shell completion exposes them too.

由索引模型根据 Issue 内容生成。

描述

bug

Version

"versions": [
    {
      "component": "core",
      "version": "3.61.0",
      "package": "pulpcore",
      "module": "pulpcore.app",
      "domain_compatible": true
    },
    {
      "component": "ansible",
      "version": "0.22.1",
      "package": "pulp-ansible",
      "module": "pulp_ansible.app",
      "domain_compatible": false
    },
    {
      "component": "container",
      "version": "2.21.0",
      "package": "pulp-container",
      "module": "pulp_container.app",
      "domain_compatible": false
    },
    {
      "component": "deb",
      "version": "3.3.1",
      "package": "pulp_deb",
      "module": "pulp_deb.app",
      "domain_compatible": false
    },
    {
      "component": "gem",
      "version": "0.6.1",
      "package": "pulp-gem",
      "module": "pulp_gem.app",
      "domain_compatible": true
    },
    {
      "component": "maven",
      "version": "0.8.1",
      "package": "pulp-maven",
      "module": "pulp_maven.app",
      "domain_compatible": false
    },
    {
      "component": "ostree",
      "version": "2.4.3",
      "package": "pulp-ostree",
      "module": "pulp_ostree.app",
      "domain_compatible": true
    },
    {
      "component": "python",
      "version": "3.12.3",
      "package": "pulp-python",
      "module": "pulp_python.app",
      "domain_compatible": true
    },
    {
      "component": "rpm",
      "version": "3.27.1",
      "package": "pulp-rpm",
      "module": "pulp_rpm.app",
      "domain_compatible": true
    },
    {
      "component": "certguard",
      "version": "3.61.0",
      "package": "pulpcore",
      "module": "pulp_certguard.app",
      "domain_compatible": true
    },
    {
      "component": "file",
      "version": "3.61.0",
      "package": "pulpcore",
      "module": "pulp_file.app",
      "domain_compatible": true
    }
  ],

Describe the bug
Just noticed that when you use the command pulp container repository you don't get the same output compared to if you pass the --help option,

See below examples

pulp container repository
Usage: pulp container repository [OPTIONS] COMMAND [ARGS]...

Options:
  -t, --type [container|push]
  --help                       Show this message and exit.

Commands:
  label
  list
  role
  show
  tag
  task
  untag
  version

versus

pulp container repository --help
Usage: pulp container repository [OPTIONS] COMMAND [ARGS]...

Options:
  -t, --type [container|push]
  --help                       Show this message and exit.

Commands:
  content
  copy-manifest
  copy-tag
  create
  destroy
  label
  list
  role
  show
  sync
  tag
  task
  untag
  update
  version

this has also effect in the pulp shell showing not full command completion

pulp> container repository
label    list     role     show     tag      task     untag    version

To Reproduce
See above

Expected behavior
I would expect same output

Additional context
I was just thrown off by it when i was looking for the pulp container repository create help, which initially did not appear in the command list.

主要语言
Python
星标
43
派生
52
平均合并
11 小时 38 分钟
30 天内合并 PR
11

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pulp/pulp-cli 的其他 Issue

查看 pulp/pulp-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。