Abra manpage for the win #590
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With examples, some stuff from docs, long-form, whatever seems reasonable.
From the speedrun! https://hack.allmende.io/2024-03-28-coopcloud-speedrun
Is there a way to add manpages for user commands, or do we need abra installed system-wide (as
root
)?At least on my system,
man
only seems to search/usr/local/share/man/
and/usr/share/man/
.One possible alternative/addition could be to contribute some examples for
abra
totldr
Well, it seems like
urfave/cli
supports this in#830
and we can generate markdown and manpage formats. We could include that markdown file on docs.coopcloud.tech? 🤔As for where it should go... I was reading https://tldp.org/HOWTO/Man-Page/q2.html and https://www.baeldung.com/linux/man-pages-manual-install. Does running
manpath
give you back something that would work for "not root" user? Mine does... (Debian)Unsure what we could automate here but
wget
/curl
'in the files down into a user local location could be nice if it is cross platform. That's be more or less what we do for theautocomplete
stuff.Ah great call I tried to find a way to check that but didn't.
So obviously some stuff has found a way to add to my manpath, but
grep MAN ~/.config/bashrc ~/.bashrc
turns up nothing so i've got no neat advice how to do it.V cool yeah!
spf13/cobra
supports this. I've got a working prototype in coop-cloud/abra#452 which needs some polishing. My only question is: is/usr/local/share/man/man1
a reliable place to dump generated man pages across different distributions?What I'm doing so far: