ideas icon indicating copy to clipboard operation
ideas copied to clipboard

--demo global flag for demonstrating how each WP-CLI command works

Open danielbachhuber opened this issue 7 years ago • 2 comments

Similar to --help, it would be informative to have a --demo global flag that would interactively demonstrate how each WP-CLI command works.

Ultimately, the end experience should be something like this:

role-reset

To produce a GIF-like experience, we'd need some way of "recording" a series of commands to be run.

Also, the command execution would need to be mocked in some way as well (e.g. it shouldn't actually work against a live install).

danielbachhuber avatar Sep 20 '17 23:09 danielbachhuber

As an alternative to GIF files, we could look into using Asciinema: https://asciinema.org/

It is open source, produces real text animations that can be embedded into a site, and the resulting animations can be paused and you can even select and copy text out of them.

schlessera avatar Sep 24 '17 06:09 schlessera

we could look into using Asciinema: https://asciinema.org/

That is really neat.

gitlost avatar Sep 24 '17 12:09 gitlost