feat(create): create in the current directory when its absolute path is the app path

未關閉 適合新手
#891 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
go
領域
cli

研究方向

首先閱讀 slack create 的路徑處理,以及 issue 指出與此行為相關的 #885 中的變更。將輸入的絕對路徑與工作目錄進行比較,並檢查現有的空目錄情況是如何處理的。完成標準是:傳入目前目錄的絕對路徑後,專案會建立在該目錄中,而不是建立在帶有 -1 後綴的相鄰目錄中。

由索引模型根據 Issue 內容生成。

描述

enhancement
Description

Passing the absolute path of the current directory to slack create creates a sibling directory with a -1 suffix instead of creating the project in the current directory:

$ mkdir app && cd app
$ slack create "$(pwd)" --template slack-samples/bolt-js-starter-template
# Creates ../app-1

With #885, slack create . creates the project in the current directory when it's empty. Comparing filepath.Abs(input) to the working directory could treat "$(pwd)" the same way. That changes the outcome of an invocation that works today, so it's tracked here instead of in #885.

Found in review of #885.

主要語言
Go
星號
321
分支
52
平均合併
17 小時 44 分鐘
30 天內合併 PR
138

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

slackapi/slack-cli 的其他 Issue

查看 slackapi/slack-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。