Skip to content
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

curlの代替としてwget/fetchをサポート #60

Merged
merged 1 commit into from
Jun 12, 2021

Conversation

yoshi389111
Copy link
Collaborator

関連

対応

  • curl が使用可能なら curl を使用する
  • curl が使用不可で、 wget が使用可能なら wget を使用する
  • curl / wget が使用不可で、 fetch が使用可能なら fetch を使用する
    • fetch は FreeBSD などで使われているみたい

その他

  • 単体テストのモックは curl のみ対応している(変更していない) その関係もあり使用可能なコマンドは curl → wget → fetch の順番にチェックをしている
  • curl /wget / fetch 以外にも、類似のコマンドはあるみたいですが( Kurly, HTTPie, ...)、現状はこの3つの実を対応している

Copy link
Member

@KEINOS KEINOS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catURL() のフル・テストが欲しいところですが、関数を外部ファイル化する際に入れましょう!この段階でゴニョゴニョするのもアレだし。

GoodToMeItLooks

@KEINOS KEINOS merged commit 6d0cf1e into Qithub-BOT:master Jun 12, 2021
@yoshi389111 yoshi389111 deleted the chnage_switch_curl_wget branch June 12, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants