NativeScript / NativeScript/nativescript-cli

Contextual Logging

未关闭
#4,067 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

backlog feature technical debt
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Is your feature request related to a problem? Please describe.
There are some command specific messages that look strange both when the NativeScript CLI is used as a library and from the command line. For example, take a look at this change.

Describe the solution you'd like
A possible solution is defining an error object instead of using strings. The object could contain something like a CLI specific message and the logger could handle the error messages based on the current CLI usage.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先检查 PR #4063 中改动的文件,并跟踪 NativeScript CLI 从命令行运行与作为 library 运行时,命令特定的消息如何传递到 logger。按照 issue 中的描述,当针对这两种使用模式分别以不同方式表示和处理上下文错误消息时,即视为完成。

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

评估

技术栈
javascript
领域
cli
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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