-
Notifications
You must be signed in to change notification settings - Fork 20
qiita.config.jsonを使って、設定を変更できるようにする #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/commands/help.ts
Outdated
--config <config_dir> | ||
qiita-cliの設定情報を配置するディレクトリを指定 | ||
--credential <credential_dir> | ||
qiita-cliの認証情報を配置するディレクトリを指定 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nits]
qiita-cliの認証情報を配置するディレクトリを指定 | |
Qiita CLIの認証情報を配置するディレクトリを指定 |
src/lib/config.ts
Outdated
includePrivate: false, | ||
} as UserConfig; | ||
|
||
if (fsSync.existsSync(this.userConfigFilePath as string)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nits & IMO]
if (fsSync.existsSync(this.userConfigFilePath as string)) { | |
if (fsSync.existsSync(this.getUserConfigFilePath())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
d442ffa
to
ac94360
Compare
ac94360
to
1cea071
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What
How
--config
オプションを--credential
オプションに変更したqiita init
でqiita.config.json
を作成するようにしたqiita.config.json
を用いて限定共有記事を取得するかどうかを選べるようにした(デフォルトはfalse
にした)--config
オプションでqiita.config.json
のパスを指定できるようにしたWhy
--config
を用いてローカルマシン上の認証情報を置く場所を指定できたが、config
という名前がバッティングするので、元々--config
となっていたものを--credential
に変更したRefs
#5