examples/README.ytfeed: expand

This commit is contained in:
dtb
2025-09-12 07:52:58 -06:00
parent f9a5b2b060
commit 7b41970358
2 changed files with 15 additions and 0 deletions

View File

@@ -27,3 +27,18 @@ distributions come with Python 3 and it's one of few languages with XML parsing
as part of the standard library - I figured it'd be less hassle than vendoring
a dependency or (woe be unto those who think it) relying on whatever awful
package managers the user has installed.
ytfeed's API (use of stdin and argv) is not finalized and will likely change.
At some point I'd like to refactor the project to be able to do something like
```
$ ytfeed.browse-feeds \
| menu \
| ytfeed.browse-feed \
| menu \
| ytfeed.browse-entry \
| menu
```
because I find long pipelines to be satisfying. Also, the Python programs would
benefit from sharing code rather than duplicating it (just a few functions - I
promise!).

37
examples/installation-helper Executable file
View File

@@ -0,0 +1,37 @@
#!./menu
$ echo Hello, world.
echo Hello, world.
$ cat Makefile
cat Makefile
$ less <menu.rs
less <menu.rs
Remove menu and re-build it.
rm -f menu; make
Install menu to /usr/local/ (assuming adequate permissions).
make PREFIX=/usr/local/ install
Install menu to /usr/local/ (using sudo(8)).
sudo make PREFIX=/usr/local install
Uninstall menu from /usr/local (assuming adequate permissions).
make PREFIX=/usr/local/ uninstall
Uninstall menu from /usr/local (using sudo(8)).
sudo make PREFIX=/usr/local/ uninstall
Open the ytfeed launcher.
make -C examples -f Makefile.ytfeed