-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add tutorial/demo #87
base: unstable
Are you sure you want to change the base?
Conversation
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
I sincerely appreciate it. I've blown it with asciinema a couple times, just failing to stick to the script. I'll definitely take a closer look at tuterm later today! Seems like a great util. By all means, iterate on this, or I can take the handoff. Either way, have a Hacktoberfest credit! Aside: the missing word "erase" from the |
I'll steadily keep working on it. After a certain checkpoint, I'll take your feedback and put the demo into the README.
Thanks ^^
Great! |
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
I think the automatic demonstration is ready. I'm still working on the extended tutorial. Please look inside the directory Customization you can do:
I created an animated SVG and put it into the main README of the repo. And if you click on the animated image in the README, it will take you to the asciicast on asciinema.org. I hosted the files on my personal accounts. Of course, you should host the files on your own (or organization's) account. The SVG can be hosted either as a gist or you can keep it inside this repo under I advise you to change the size of the animated SVG. I didn't want to change it because I thought it's best that you do it. Let me know what you think. Also let me know if you reach any kind of roadblock. |
Real life has eaten me, but I swear I haven't forgotten you guys! |
I created a tutorial and demonstration for the program:
Something like this is very nice to have in a README. The tutorial/demo is incomplete and unpolished. I wanted to create this proof of concept quickly so I could get your early feedback and avoid falling into a rabbit hole.
Disclaimer: The following is shameless self-promotion.
I created this using a project of my own making: tuterm.
Nothing fancy, just a bash extension that allows you to create both a demonstration and an interactive CLI tutorial all in the same bash script. I created it in the hope that it will be useful for developers and CLI users as well.
Coupled with asciinema, you can create and upload the demo with near-zero manual work.
This is the command I used to create the demo:
to upload it:
Actually, I removed a single line from the
bak.cast
file before uploading it because it contained an error message. But I'll fix that error in the future so this step won't be necessary.If you want to run it in interactive tutorial mode, use the following command:
If you want to speed up the printing of user prompts, you can add a
--fast
or-f
option. Also, don't worry about~
being displayed as the working directory while running the tutorial. Everything is done under a fake home directory that is located under/tmp
.I hope you find this useful :)