Skip to content
/ manr Public

A prototype Rust version of man - "an interface to the system reference manuals"

License

Notifications You must be signed in to change notification settings

aed900/manr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manr

A prototype Rust version of man - "an interface to the system reference manuals"

This program currently requires groff and less to also be installed. Depending on Linux distro these can be installed if not already as follows:

sudo apt-get install groff

sudo apt-get install less

Open manual pages by running the program along with a page name or a section number and page name.

Examples:

  • To open the first available section:

    • cargo run man
  • To open a specific section:

    • cargo run 7 man

Currently supports using the -f flag for a whatis type search or the -k flag for an apropos type search.

Examples:

  • To list all available sections for a specific page:

    • cargo run -- -f man
  • To find all pages and descriptions containing a search term:

    • cargo run -- -k man

An index.bin file is created if not found from all manual page entries recursively found in the default directory. The default directory is set to "/usr/share/man/" and can be changed in the config.toml file.

To update the index.bin when files are changed or added within this directory run the makewhatis command.

Example:

  • Update manual index cache:
    • cargo run makewhatis

Alternatively delete any existing index.bin or setup a cron job to periodically refresh this file.

About

A prototype Rust version of man - "an interface to the system reference manuals"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages