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

オープン 初心者向け
#891 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
138

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

slackapi/slack-cli のほかの issue

slackapi/slack-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。