WordPress / WordPress/Requests

Create CLI example

Open
#77 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Extras
Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

As a proof-of-concept, Requests should include an example of how to use it via a CLI. What we need here is a tiny client that can make requests and do some common tasks.

  • Send a GET request
  • Display progress bar (to stderr, ala cURL)
  • Enable streaming to file (-o)

Props to @rdlowrey for inspiration from Artax's Progress extension.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or CLI entry point. First locate how Requests currently sends requests and exposes response streaming, then identify the project's command-line entry point. Done means a proof-of-concept client covers GET requests, stderr progress, and -o file streaming.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.