Skip to content
A tool for storing and running customized commands.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
add.go
commands.go
get.go
main.go
run.go
util.go

README.md

mann

Your personal man pages

A command-line interface tool for storing and running customized commands.

Install

$ go get github.com/patmigliaccio/mann

Usage

Retrieve

$ mann service

#   Name: service
#
#   Commands:
#   1.      service --status-all
#   2.      service --status-all | grep -E 'httpd|vsftpd'

Add

Store a command including any flags and predicates for reuse later.

$ mann add service --status-all

# Added: service --status-all

Using quotes allows for the addition of more complex commands such as pipes.

$ mann add "service --status-all | grep -E 'httpd|vsftpd'"

# Added: service --status-all | grep -E 'httpd|vsftpd'

Run

Execute a command by passing the list item number.

$ mann run service 2

# service --status-all | grep -E 'httpd|vsftpd'
# httpd (pid  2301) is running...
# vsftpd (pid 14070 2061) is running...
You can’t perform that action at this time.