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

feat: add config show command for active microcks context

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

维护者通常 1 天内回复

@mugiwaraluffy56 已经在做这个了。

开始于 2026年5月11日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
go
领域
cli, tooling

调研方向

从 cmd/ 开始,跟踪 CLI 使用的现有本地配置加载和上下文解析。添加 config show 入口,并检查临时配置 fixture 测试,以覆盖上下文、服务器 URL、TLS、token 是否存在、refresh-token 是否存在以及关联实例的详细信息,同时不打印密钥。输出和测试完成后,更新命令文档。

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

描述

the cli stores microcks connection details in the local config, but there is no simple command that shows what the active context currently points to. when debugging microcks import, microcks test, or local tooling that connects to microcks, users currently have to inspect the raw config file manually to confirm the current context, server url, tls setting, and whether auth credentials are present.

a microcks config show command would make that state visible from the cli without exposing secrets. the default output could print a small table with the current context name, server url, insecure tls setting, whether an auth token is present, whether a refresh token is present, and linked local instance information if the context has one.

example:

microcks config show
current context   server                  insecure tls   auth token   instance
local             http://localhost:8585   false          present      microcks

the first version can stay focused: add a config show command under cmd/, reuse the existing local config loading and context resolution code, mask token values instead of printing them, add tests with temporary config fixtures, and update command documentation.

this also supports the vs code integration work in #255 because editor tooling needs an easy way for users to confirm which microcks instance their local environment is configured to use.

主要语言
Go
星标
57
派生
73
平均合并
1 天 9 小时
30 天内合并 PR
28

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

microcks/microcks-cli 的其他 Issue

查看 microcks/microcks-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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