Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (36 sloc) 936 Bytes

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.