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 摘要。