[systemd-devel] [PATCH] systemctl: Implement "info" and "doc" commands, similar to "man"

Gergely Nagy algernon at balabit.hu
Thu May 31 01:44:27 PDT 2012


Gergely Nagy <algernon at balabit.hu> writes:

> Similar to systemctl man, implement the info and doc commands. The
> former will open the appropriate info page, the latter will open any
> http (or https) documentation via xdg-open.

FWIW, that patch was only compile-tested, but it should work.

Nevertheless, I was thinking that 3 different commands to display docs
might be a bit too much. Perhaps it could be condensed into a single
"doc" command, with --info, --man and --http or similar flags to select
what kind of documentation to display? (And by default, will prefer http
over info over man)

I can probably cook that up in a lunch break or so, but would rather
have other opinions before I do that, to see if it's worth the effort.

-- 
|8]



More information about the systemd-devel mailing list