Skip to content

Commit

Permalink
[Major] UI Enhancements (#1321)
Browse files Browse the repository at this point in the history
* Refactor tests to use a text-based standard output. (#1318)

* Implement new style `--help` (#1316)

* Implement man page generation (#1317)

* Implement rich progress bars. (#1324)

* Man page deployment & isolation. (#1325)

* Remove all unsorted usages in the CLI docs

* Implement isolated mode for man page generation

* Add a CI job for autogenerated files

* Distribute man pages through PyPI

* Pin the date for man pages. (#1326)

* Hide suppressed arguments from --help/man pages (#1329)

* Change download spinner to line (#1328)

* Regenerate autogenerated files when pushed against to master. (#1339)

* Highlight options (#1340)

* Additional man page enhancements (#1341)

* Group options by the parent category & highlight -o/--o

* Display (and underline) the METAVAR on man pages.

* Make help message processing more robust (#1342)

* Inherit `help` from `short_help`

* Don't mirror short_help directly.

* Fixup the serialization

* Use `pager` and `man` on `--manual` when applicable (#1343)

* Run `man $program` on --manual

* Page the output of `--manual` for systems that lack man pages

* Improvements over progress bars (separate bar, status line, etc.) (#1346)

* Redesign the --help layout.

* Make our usage of rich compatible with 9.10.0

* Add `HTTPIE_NO_MAN_PAGES`

* Make tests also patch os.get_terminal_size

* Generate CLI spec from HTTPie & Man Page Hook (#1354)

* Generate CLI spec from HTTPie & add man page hook

* Use the full command space for the option headers
  • Loading branch information
isidentical authored Apr 14, 2022
1 parent 86f4bf4 commit ff6f188
Show file tree
Hide file tree
Showing 32 changed files with 2,522 additions and 390 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/autogenerated-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Autogenerated Files

on:
push:
branches:
- master

jobs:
regen-autogenerated-files:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
with:
python-version: 3.9

- run: make regen-all

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
commit-message: "[automated] Update auto-generated files"
title: "[automated] Update auto-generated files"
delete-branch: true
token: ${{ secrets.GITHUB_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/docs-update-install.yml

This file was deleted.

19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ doc-check:
mdl --git-recurse --style docs/markdownlint.rb .


doc-update-install:
@echo $(H1)Updating installation instructions in the docs$(H1END)
$(VENV_PYTHON) docs/installation/generate.py


###############################################################################
# Publishing to PyPi
###############################################################################
Expand Down Expand Up @@ -211,3 +206,17 @@ brew-test:

@echo $(H1)Auditing…$(H1END)
brew audit --strict httpie

###############################################################################
# Regeneration
###############################################################################

regen-all: regen-man-pages regen-install-methods

regen-man-pages: install
@echo $(H1)Regenerate man pages$(H1END)
$(VENV_PYTHON) extras/scripts/generate_man_pages.py

regen-install-methods:
@echo $(H1)Updating installation instructions in the docs$(H1END)
$(VENV_PYTHON) docs/installation/generate.py
Loading

0 comments on commit ff6f188

Please sign in to comment.